>>> Building on exopi-1 under games/moria DIST = [games/moria:um5.5.2.tar.Z] FULLPKGNAME = moria-5.5.2p5 distfiles size=910536 >>> Running build in games/moria at 1764960093.86 ===> games/moria ===> Building from scratch moria-5.5.2p5 ===> Verifying specs: c curses ===> found c.102.2 curses.16.0 ===> Checking files for moria-5.5.2p5 `/exopi-cvs/ports/distfiles/um5.5.2.tar.Z' is up to date. >> (SHA256) all files: OK ===> Extracting for moria-5.5.2p5 ===> Patching for moria-5.5.2p5 ===> Applying OpenBSD patch patch-source_config_h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- source/config.h.orig Wed Jul 4 12:42:19 2001 |+++ source/config.h Wed Jul 4 12:42:21 2001 -------------------------- Patching file source/config.h using Plan A... Hunk #1 succeeded at 6. Hunk #2 succeeded at 213. done ===> Applying OpenBSD patch patch-source_death_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- source/death.c.orig Fri Jul 22 03:47:16 1994 |+++ source/death.c Fri Apr 5 22:19:11 2013 -------------------------- Patching file source/death.c using Plan A... Hunk #1 succeeded at 123. done ===> Applying OpenBSD patch patch-source_externs_h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- source/externs.h.orig Fri Jul 22 03:47:20 1994 |+++ source/externs.h Tue Apr 25 17:43:50 2017 -------------------------- Patching file source/externs.h using Plan A... Hunk #1 succeeded at 330. Hunk #2 succeeded at 842. done ===> Applying OpenBSD patch patch-source_io_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- source/io.c.orig Fri Jul 22 03:47:26 1994 |+++ source/io.c Tue Apr 25 17:35:17 2017 -------------------------- Patching file source/io.c using Plan A... Hunk #1 succeeded at 60. Hunk #2 succeeded at 113. Hunk #3 succeeded at 213. Hunk #4 succeeded at 243. Hunk #5 succeeded at 328. Hunk #6 succeeded at 406. Hunk #7 succeeded at 437. Hunk #8 succeeded at 455. Hunk #9 succeeded at 569. Hunk #10 succeeded at 663. Hunk #11 succeeded at 696. Hunk #12 succeeded at 738. Hunk #13 succeeded at 798. done ===> Applying OpenBSD patch patch-source_main_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- source/main.c.orig Fri Jul 22 03:47:27 1994 |+++ source/main.c Fri Apr 5 22:20:46 2013 -------------------------- Patching file source/main.c using Plan A... Hunk #1 succeeded at 88. Hunk #2 succeeded at 349. done ===> Applying OpenBSD patch patch-source_misc1_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- source/misc1.c.orig Fri Jul 22 03:47:28 1994 |+++ source/misc1.c Fri Apr 5 22:23:01 2013 -------------------------- Patching file source/misc1.c using Plan A... Hunk #1 succeeded at 28. Hunk #2 succeeded at 40. Hunk #3 succeeded at 80. done ===> Applying OpenBSD patch patch-source_save_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- source/save.c.orig Fri Jul 22 03:47:40 1994 |+++ source/save.c Fri Apr 5 22:25:03 2013 -------------------------- Patching file source/save.c using Plan A... Hunk #1 succeeded at 102. Hunk #2 succeeded at 327. Hunk #3 succeeded at 1021. Hunk #4 succeeded at 1241. done ===> Applying OpenBSD patch patch-source_signals_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- source/signals.c.orig Fri Jul 22 03:47:42 1994 |+++ source/signals.c Tue Apr 25 17:30:19 2017 -------------------------- Patching file source/signals.c using Plan A... Hunk #1 succeeded at 88. Hunk #2 succeeded at 118. Hunk #3 succeeded at 154. done ===> Applying OpenBSD patch patch-unix_unix_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- unix/unix.c.orig Fri Jul 22 00:37:08 1994 |+++ unix/unix.c Fri Apr 5 22:26:10 2013 -------------------------- Patching file unix/unix.c using Plan A... Hunk #1 succeeded at 18. Hunk #2 succeeded at 43. Hunk #3 succeeded at 121. Hunk #4 succeeded at 134. 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 moria-5.5.2p5 ===> Configuring for moria-5.5.2p5 cd /exopi-obj/pobj/moria-5.5.2/build-amd64; for i in /exopi-obj/pobj/moria-5.5.2/umoria/source/*; do ln -sf $i; done; for i in /exopi-obj/pobj/moria-5.5.2/umoria/unix/*; do ln -sf $i; done; ln -sf /exopi-obj/pobj/moria-5.5.2/umoria/files ===> Building for moria-5.5.2p5 cc -DPREFIX=\"/usr/local\" -O2 -pipe -c main.c In file included from main.c:66: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from main.c:66: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ main.c:261:31: warning: passing arguments to 'display_scores' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 261 | case 'S': display_scores(TRUE); exit_game(); | ^ main.c:262:31: warning: passing arguments to 'display_scores' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 262 | case 's': display_scores(FALSE); exit_game(); | ^ main.c:289:13: warning: passing arguments to 'init_seeds' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 289 | init_seeds(seed); | ^ main.c:331:62: warning: passing arguments to 'get_char' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 331 | if ((new_game == FALSE) && !access(savefile, 0) && get_char(&generate)) | ^ main.c:359:15: warning: passing arguments to 'calc_spells' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 359 | calc_spells(A_INT); | ^ main.c:360:13: warning: passing arguments to 'calc_mana' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 360 | calc_mana(A_INT); | ^ main.c:364:15: warning: passing arguments to 'calc_spells' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 364 | calc_spells(A_WIS); | ^ main.c:366:13: warning: passing arguments to 'calc_mana' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 366 | calc_mana(A_WIS); | ^ main.c:179:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 179 | int main(argc, argv) | ^ In file included from main.c:66: ./externs.h:878:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 878 | int main(); | ^ main.c:422:12: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 422 | invcopy(&inventory[i], OBJ_NOTHING); | ^ main.c:427:14: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 427 | invcopy(&inven_init, j); | ^ main.c:429:19: warning: passing arguments to 'store_bought' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 429 | store_bought(&inven_init); | ^ main.c:433:25: warning: passing arguments to 'inven_carry' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 433 | (void) inven_carry(&inven_init); | ^ 16 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c misc1.c In file included from misc1.c:12: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from misc1.c:12: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ misc1.c:52:15: warning: passing arguments to 'set_rnd_seed' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | set_rnd_seed(clock_var); | ^ misc1.c:54:27: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | for (clock_var = randint(100); clock_var != 0; clock_var--) | ^ misc1.c:37:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | void init_seeds(seed) | ^ In file included from misc1.c:12: ./externs.h:881:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 881 | void init_seeds(); | ^ misc1.c:68:16: warning: passing arguments to 'set_rnd_seed' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | set_rnd_seed (seed); | ^ misc1.c:62:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | void set_seed(seed) | ^ In file included from misc1.c:12: ./externs.h:882:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 882 | void set_seed(); | ^ misc1.c:75:16: warning: passing arguments to 'set_rnd_seed' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | set_rnd_seed (old_seed); | ^ misc1.c:99:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | int randint(maxval) | ^ In file included from misc1.c:12: ./externs.h:885:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 885 | int randint(); | ^ misc1.c:109:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | int randnor(mean, stand) | ^ In file included from misc1.c:12: ./externs.h:886:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 886 | int randnor(); | ^ misc1.c:175:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | int bit_pos(test) | ^ In file included from misc1.c:12: ./externs.h:887:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 887 | int bit_pos(); | ^ misc1.c:194:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 194 | int in_bounds(y, x) | ^ In file included from misc1.c:12: ./externs.h:888:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 888 | int in_bounds(); | ^ misc1.c:219:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 219 | int get_panel(y, x, force) | ^ In file included from misc1.c:12: ./externs.h:890:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 890 | int get_panel(); | ^ misc1.c:261:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 261 | int panel_contains(y, x) | ^ In file included from misc1.c:12: ./externs.h:891:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 891 | int panel_contains(); | ^ misc1.c:273:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 273 | int distance(y1, x1, y2, x2) | ^ In file included from misc1.c:12: ./externs.h:892:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 892 | int distance(); | ^ misc1.c:291:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 291 | int next_to_walls(y, x) | ^ In file included from misc1.c:12: ./externs.h:893:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 893 | int next_to_walls(); | ^ misc1.c:318:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 318 | int next_to_corr(y, x) | ^ In file included from misc1.c:12: ./externs.h:894:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 894 | int next_to_corr(); | ^ misc1.c:339:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 339 | int damroll(num, sides) | ^ In file included from misc1.c:12: ./externs.h:895:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 895 | int damroll(); | ^ misc1.c:349:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 349 | int pdamroll(array) | ^ In file included from misc1.c:12: ./externs.h:896:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 896 | int pdamroll(); | ^ misc1.c:372:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 372 | int los(fromY, fromX, toY, toX) | ^ In file included from misc1.c:12: ./externs.h:897:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 897 | int los(); | ^ misc1.c:532:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 532 | unsigned char loc_symbol(y, x) | ^ In file included from misc1.c:12: ./externs.h:898:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 898 | unsigned char loc_symbol(); | ^ misc1.c:584:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 584 | int test_light(y, x) | ^ In file included from misc1.c:12: ./externs.h:899:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 899 | int test_light(); | ^ misc1.c:607:18: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 607 | erase_line (k, 13); | ^ misc1.c:612:11: warning: passing arguments to 'print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 612 | print(tmp_char, i, j); | ^ misc1.c:630:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 630 | msg_print("Compacting monsters..."); | ^ misc1.c:654:19: warning: passing arguments to 'delete_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 654 | delete_monster(i); | ^ misc1.c:660:22: warning: passing arguments to 'fix1_delete_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 660 | fix1_delete_monster(i); | ^ misc1.c:688:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 688 | msg_print("You are bloated from overeating."); | ^ misc1.c:705:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 705 | msg_print("You are full."); | ^ misc1.c:677:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 677 | void add_food(num) | ^ In file included from misc1.c:12: ./externs.h:902:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 902 | void add_food(); | ^ misc1.c:723:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 723 | int max_hp(array) | ^ In file included from misc1.c:12: ./externs.h:904:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 904 | int max_hp(); | ^ misc1.c:731:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 731 | int place_monster(y, x, z, slp) | ^ In file included from misc1.c:12: ./externs.h:905:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 905 | int place_monster(); | ^ misc1.c:811:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 811 | int get_mons_num (level) | ^ In file included from misc1.c:12: ./externs.h:907:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 907 | int get_mons_num(); | ^ misc1.c:851:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 851 | void alloc_monster(num, dis, slp) | ^ In file included from misc1.c:12: ./externs.h:908:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 908 | void alloc_monster(); | ^ misc1.c:881:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 881 | int summon_monster(y, x, slp) | ^ In file included from misc1.c:12: ./externs.h:909:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 909 | int summon_monster(); | ^ misc1.c:918:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 918 | int summon_undead(y, x) | ^ In file included from misc1.c:12: ./externs.h:910:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 910 | int summon_undead(); | ^ misc1.c:983:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 983 | msg_print("Compacting objects..."); | ^ misc1.c:1020:27: warning: passing arguments to 'delete_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1020 | (void) delete_object(i, j); | ^ misc1.c:1059:10: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1059 | invcopy(&t_list[tcptr], OBJ_NOTHING); | ^ misc1.c:1043:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1043 | void pusht(x) | ^ In file included from misc1.c:12: ./externs.h:912:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 912 | void pusht(); | ^ misc1.c:1064:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1064 | int magik(chance) | ^ In file included from misc1.c:12: ./externs.h:913:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 913 | int magik(); | ^ misc1.c:1075:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1075 | int m_bonus(base, max_std, level) | ^ In file included from misc1.c:12: ./externs.h:914:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 914 | int m_bonus(); | ^ 68 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c misc2.c In file included from misc2.c:16: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from misc2.c:16: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ misc2.c:47:16: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | if (magik(chance)) | ^ misc2.c:49:26: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | t_ptr->toac += m_bonus(1, 30, level); | ^ misc2.c:50:13: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | if (magik(special)) | ^ misc2.c:51:20: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | switch(randint(9)) | ^ misc2.c:103:21: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | else if (magik(cursed)) | ^ misc2.c:105:26: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | t_ptr->toac -= m_bonus(1, 40, level); | ^ misc2.c:118:16: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | if (magik(chance)) | ^ misc2.c:120:27: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 120 | t_ptr->tohit += m_bonus(0, 40, level); | ^ misc2.c:123:27: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | t_ptr->todam += m_bonus(0, 4*tmp, tmp*level/10); | ^ misc2.c:127:13: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 127 | if (magik(3*special/2)) | ^ misc2.c:128:20: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 128 | switch(randint(16)) | ^ misc2.c:140:26: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 140 | t_ptr->toac += randint(4); | ^ misc2.c:143:25: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | t_ptr->p1 = randint(4); | ^ misc2.c:160:30: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 160 | t_ptr->toac += 5 + randint(5); | ^ misc2.c:163:25: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 163 | t_ptr->p1 = randint(3); | ^ misc2.c:223:21: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 223 | else if (magik(cursed)) | ^ misc2.c:225:27: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 225 | t_ptr->tohit -= m_bonus(1, 55, level); | ^ misc2.c:228:27: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 228 | t_ptr->todam -= m_bonus(1, 11*tmp/2, tmp*level/10); | ^ misc2.c:241:16: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 241 | if (magik(chance)) | ^ misc2.c:243:27: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 243 | t_ptr->tohit += m_bonus(1, 30, level); | ^ misc2.c:244:27: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 244 | t_ptr->todam += m_bonus(1, 20, level); /* add damage. -CJS- */ | ^ misc2.c:246:21: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 246 | else if (magik(cursed)) | ^ misc2.c:248:27: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 248 | t_ptr->tohit -= m_bonus(1, 50, level); | ^ misc2.c:249:27: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 249 | t_ptr->todam -= m_bonus(1, 30, level); /* add damage. -CJS- */ | ^ misc2.c:262:16: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 262 | if (magik(chance)) | ^ misc2.c:264:17: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 264 | tmp = randint(3); | ^ misc2.c:266:26: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 266 | t_ptr->p1 += m_bonus(0, 25, level); | ^ misc2.c:270:28: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 270 | t_ptr->p1 = -m_bonus(1, 30, level); | ^ misc2.c:282:16: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 282 | if (magik(chance)) | ^ misc2.c:284:26: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 284 | t_ptr->toac += m_bonus(1, 20, level); | ^ misc2.c:285:13: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 285 | if (magik(special)) | ^ misc2.c:287:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 287 | if (randint(2) == 1) | ^ misc2.c:300:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 300 | t_ptr->tohit += 1 + randint(3); | ^ misc2.c:301:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 301 | t_ptr->todam += 1 + randint(3); | ^ misc2.c:307:21: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 307 | else if (magik(cursed)) | ^ misc2.c:309:13: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 309 | if (magik(special)) | ^ misc2.c:311:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 311 | if (randint(2) == 1) | ^ misc2.c:322:30: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 322 | t_ptr->p1 = -m_bonus(1, 10, level); | ^ misc2.c:324:26: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 324 | t_ptr->toac -= m_bonus(1, 40, level); | ^ misc2.c:335:16: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 335 | if (magik(chance)) | ^ misc2.c:337:26: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 337 | t_ptr->toac += m_bonus(1, 20, level); | ^ misc2.c:338:13: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 338 | if (magik(special)) | ^ misc2.c:340:21: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 340 | tmp = randint(12); | ^ misc2.c:363:24: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 363 | t_ptr->p1 = randint(3); | ^ misc2.c:369:21: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 369 | else if (magik(cursed)) | ^ misc2.c:371:17: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 371 | tmp = randint(3); | ^ misc2.c:390:26: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 390 | t_ptr->toac -= m_bonus(2, 45, level); | ^ misc2.c:406:16: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 406 | if (magik(chance)) | ^ misc2.c:408:26: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 408 | t_ptr->toac += m_bonus(1, 20, level); | ^ misc2.c:409:13: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 409 | if (magik(special)) | ^ misc2.c:413:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 413 | tmp = randint(3); | ^ misc2.c:417:28: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 417 | t_ptr->p1 = randint(2); | ^ misc2.c:424:28: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 424 | t_ptr->p1 = randint(2); | ^ misc2.c:431:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 431 | t_ptr->p1 = 1 + randint(4); | ^ misc2.c:443:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 443 | switch(randint(6)) | ^ misc2.c:447:28: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 447 | t_ptr->p1 = randint(3); | ^ misc2.c:459:28: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 459 | t_ptr->p1 = randint(3); | ^ misc2.c:466:28: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 466 | t_ptr->p1 = randint(3); | ^ misc2.c:479:28: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 479 | t_ptr->p1 = randint(3); | ^ misc2.c:486:35: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 486 | t_ptr->p1 = 5*(1 + randint(4)); | ^ misc2.c:504:21: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 504 | else if (magik(cursed)) | ^ misc2.c:506:26: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 506 | t_ptr->toac -= m_bonus(1, 45, level); | ^ misc2.c:513:13: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 513 | if (magik(special)) | ^ misc2.c:514:20: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 514 | switch(randint(7)) | ^ misc2.c:518:24: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 518 | t_ptr->p1 = -randint (5); | ^ misc2.c:524:24: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 524 | t_ptr->p1 = -randint (5); | ^ misc2.c:546:24: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 546 | t_ptr->p1 = -randint (5); | ^ misc2.c:556:24: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 556 | t_ptr->p1 = -randint (5); | ^ misc2.c:568:13: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 568 | if (magik(cursed)) | ^ misc2.c:570:28: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 570 | t_ptr->p1 = -m_bonus(1, 20, level); | ^ misc2.c:580:27: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 580 | t_ptr->p1 = m_bonus(1, 10, level); | ^ misc2.c:585:13: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 585 | if (magik(cursed)) | ^ misc2.c:587:28: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 587 | t_ptr->p1 = -randint(3); | ^ misc2.c:599:27: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 599 | t_ptr->p1 = 5 * m_bonus(1, 20, level); | ^ misc2.c:601:14: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 601 | if (magik (cursed)) | ^ misc2.c:613:27: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 613 | t_ptr->todam += m_bonus(1, 20, level); | ^ misc2.c:615:13: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 615 | if (magik(cursed)) | ^ misc2.c:627:27: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 627 | t_ptr->tohit += m_bonus(1, 20, level); | ^ misc2.c:629:13: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 629 | if (magik(cursed)) | ^ misc2.c:641:26: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 641 | t_ptr->toac += m_bonus(1, 20, level); | ^ misc2.c:643:13: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 643 | if (magik(cursed)) | ^ misc2.c:660:27: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 660 | t_ptr->todam += m_bonus(1, 25, level); | ^ misc2.c:661:27: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 661 | t_ptr->tohit += m_bonus(1, 25, level); | ^ misc2.c:663:13: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 663 | if (magik(cursed)) | ^ misc2.c:683:13: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 683 | if (magik(cursed)) | ^ misc2.c:685:28: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 685 | t_ptr->p1 = -m_bonus(1, 20, level); | ^ misc2.c:695:27: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 695 | t_ptr->p1 = m_bonus(1, 10, level); | ^ misc2.c:701:27: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 701 | t_ptr->p1 = 5 * m_bonus(1, 25, level); | ^ misc2.c:702:13: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 702 | if (magik(cursed)) | ^ misc2.c:718:27: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 718 | t_ptr->p1 = 5 * m_bonus(1, 25, level); | ^ misc2.c:728:23: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 728 | t_ptr->p1 = randint(t_ptr->p1); | ^ misc2.c:736:31: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 736 | case 0: t_ptr->p1 = randint(10) + 6; break; | ^ misc2.c:737:31: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 737 | case 1: t_ptr->p1 = randint(8) + 6; break; | ^ misc2.c:738:31: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 738 | case 2: t_ptr->p1 = randint(5) + 6; break; | ^ misc2.c:739:31: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 739 | case 3: t_ptr->p1 = randint(8) + 6; break; | ^ misc2.c:740:31: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 740 | case 4: t_ptr->p1 = randint(4) + 3; break; | ^ misc2.c:741:31: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 741 | case 5: t_ptr->p1 = randint(8) + 6; break; | ^ misc2.c:742:31: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 742 | case 6: t_ptr->p1 = randint(20) + 12; break; | ^ misc2.c:743:31: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 743 | case 7: t_ptr->p1 = randint(20) + 12; break; | ^ misc2.c:744:31: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 744 | case 8: t_ptr->p1 = randint(10) + 6; break; | ^ misc2.c:745:31: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 745 | case 9: t_ptr->p1 = randint(12) + 6; break; | ^ misc2.c:746:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 746 | case 10: t_ptr->p1 = randint(10) + 12; break; | ^ misc2.c:747:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 747 | case 11: t_ptr->p1 = randint(3) + 3; break; | ^ misc2.c:748:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 748 | case 12: t_ptr->p1 = randint(8) + 6; break; | ^ misc2.c:749:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 749 | case 13: t_ptr->p1 = randint(10) + 6; break; | ^ misc2.c:750:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 750 | case 14: t_ptr->p1 = randint(5) + 3; break; | ^ misc2.c:751:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 751 | case 15: t_ptr->p1 = randint(5) + 3; break; | ^ misc2.c:752:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 752 | case 16: t_ptr->p1 = randint(5) + 6; break; | ^ misc2.c:753:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 753 | case 17: t_ptr->p1 = randint(5) + 4; break; | ^ misc2.c:754:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 754 | case 18: t_ptr->p1 = randint(8) + 4; break; | ^ misc2.c:755:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 755 | case 19: t_ptr->p1 = randint(6) + 2; break; | ^ misc2.c:756:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 756 | case 20: t_ptr->p1 = randint(4) + 2; break; | ^ misc2.c:757:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 757 | case 21: t_ptr->p1 = randint(8) + 6; break; | ^ misc2.c:758:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 758 | case 22: t_ptr->p1 = randint(5) + 2; break; | ^ misc2.c:759:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 759 | case 23: t_ptr->p1 = randint(12) + 12; break; | ^ misc2.c:768:31: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 768 | case 0: t_ptr->p1 = randint(20) + 12; break; | ^ misc2.c:769:31: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 769 | case 1: t_ptr->p1 = randint(8) + 6; break; | ^ misc2.c:770:31: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 770 | case 2: t_ptr->p1 = randint(5) + 6; break; | ^ misc2.c:771:31: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 771 | case 3: t_ptr->p1 = randint(20) + 12; break; | ^ misc2.c:772:31: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 772 | case 4: t_ptr->p1 = randint(15) + 6; break; | ^ misc2.c:773:31: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 773 | case 5: t_ptr->p1 = randint(4) + 5; break; | ^ misc2.c:774:31: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 774 | case 6: t_ptr->p1 = randint(5) + 3; break; | ^ misc2.c:775:31: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 775 | case 7: t_ptr->p1 = randint(3) + 1; | ^ misc2.c:778:31: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 778 | case 8: t_ptr->p1 = randint(3) + 1; break; | ^ misc2.c:779:31: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 779 | case 9: t_ptr->p1 = randint(5) + 6; break; | ^ misc2.c:780:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 780 | case 10: t_ptr->p1 = randint(10) + 12; break; | ^ misc2.c:781:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 781 | case 11: t_ptr->p1 = randint(5) + 6; break; | ^ misc2.c:782:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 782 | case 12: t_ptr->p1 = randint(5) + 6; break; | ^ misc2.c:783:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 783 | case 13: t_ptr->p1 = randint(5) + 6; break; | ^ misc2.c:784:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 784 | case 14: t_ptr->p1 = randint(10) + 12; break; | ^ misc2.c:785:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 785 | case 15: t_ptr->p1 = randint(3) + 4; break; | ^ misc2.c:786:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 786 | case 16: t_ptr->p1 = randint(5) + 6; break; | ^ misc2.c:787:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 787 | case 17: t_ptr->p1 = randint(5) + 6; break; | ^ misc2.c:788:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 788 | case 18: t_ptr->p1 = randint(3) + 4; break; | ^ misc2.c:789:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 789 | case 19: t_ptr->p1 = randint(10) + 12; break; | ^ misc2.c:790:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 790 | case 20: t_ptr->p1 = randint(3) + 4; break; | ^ misc2.c:791:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 791 | case 21: t_ptr->p1 = randint(3) + 4; break; | ^ misc2.c:792:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 792 | case 22: t_ptr->p1 = randint(10) + 6; | ^ misc2.c:801:16: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 801 | if (magik(chance)) | ^ misc2.c:803:13: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 803 | if (magik(special)) | ^ misc2.c:805:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 805 | if (randint(2) == 1) | ^ misc2.c:808:27: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 808 | t_ptr->toac += m_bonus(2, 40, level); | ^ misc2.c:813:27: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 813 | t_ptr->toac += m_bonus(1, 20, level); | ^ misc2.c:815:24: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 815 | t_ptr->p1 = randint(3); | ^ misc2.c:822:28: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 822 | t_ptr->toac += m_bonus(1, 20, level); | ^ misc2.c:824:21: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 824 | else if (magik(cursed)) | ^ misc2.c:826:17: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 826 | tmp = randint(3); | ^ misc2.c:831:31: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 831 | t_ptr->toac -= m_bonus(1, 10, level); | ^ misc2.c:833:31: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 833 | t_ptr->tohit -= m_bonus(1, 10, level); | ^ misc2.c:834:31: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 834 | t_ptr->todam -= m_bonus(1, 10, level); | ^ misc2.c:840:30: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 840 | t_ptr->toac -= m_bonus(10, 100, level+50); | ^ misc2.c:846:31: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 846 | t_ptr->toac -= m_bonus(1, 10, level); | ^ misc2.c:848:31: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 848 | t_ptr->tohit -= m_bonus(2, 40, level+10); | ^ misc2.c:849:31: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 849 | t_ptr->todam -= m_bonus(2, 40, level+10); | ^ misc2.c:861:21: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 861 | switch(randint(level+4)) | ^ misc2.c:910:13: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 910 | if (magik(chance)) | ^ misc2.c:912:31: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 912 | t_ptr->tohit += m_bonus(1, 35, level); | ^ misc2.c:913:31: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 913 | t_ptr->todam += m_bonus(1, 35, level); | ^ misc2.c:915:17: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 915 | if (magik(3*special/2)) | ^ misc2.c:916:17: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 916 | switch(randint(10)) | ^ misc2.c:958:18: warning: passing arguments to 'magik' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 958 | else if (magik(cursed)) | ^ misc2.c:960:31: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 960 | t_ptr->tohit -= m_bonus(5, 55, level); | ^ misc2.c:961:31: warning: passing arguments to 'm_bonus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 961 | t_ptr->todam -= m_bonus(5, 55, level); | ^ misc2.c:973:26: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 973 | t_ptr->number += randint(6); | ^ misc2.c:21:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | void magic_treasure(x, level) | ^ In file included from misc2.c:16: ./externs.h:917:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 917 | void magic_treasure(); | ^ misc2.c:1038:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1038 | prt(" ESC when finished, y/n to set options, or - to move cursor", | ^ misc2.c:1044:10: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1044 | prt(string, max+1, 0); | ^ misc2.c:1046:13: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1046 | erase_line(max+1, 0); | ^ misc2.c:1050:18: warning: passing arguments to 'move_cursor' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1050 | move_cursor(i+1, 40); | ^ misc2.c:1071:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1071 | put_buffer("yes", i+1, 40); | ^ misc2.c:1080:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1080 | put_buffer("no ", i+1, 40); | ^ 174 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c misc3.c In file included from misc3.c:16: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from misc3.c:16: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ misc3.c:58:10: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | invcopy(&t_list[cur_pos], OBJ_TRAP_LIST + subval); | ^ misc3.c:51:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | void place_trap(y, x, subval) | ^ In file included from misc3.c:16: ./externs.h:921:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 921 | void place_trap(); | ^ misc3.c:73:10: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | invcopy(&t_list[cur_pos], OBJ_RUBBLE); | ^ misc3.c:63:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | void place_rubble(y, x) | ^ In file included from misc3.c:16: ./externs.h:922:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 922 | void place_rubble(); | ^ misc3.c:90:16: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | i = ((randint(dun_level+2)+2) / 2) - 1; | ^ misc3.c:91:14: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | if (randint(OBJ_GREAT) == 1) | ^ misc3.c:92:17: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | i += randint(dun_level+1); | ^ misc3.c:96:10: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | invcopy(&t_list[cur_pos], OBJ_GOLD_LIST+i); | ^ misc3.c:98:37: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | t_ptr->cost += (8L * (long)randint((int)t_ptr->cost)) + randint(8); | ^ misc3.c:98:66: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | t_ptr->cost += (8L * (long)randint((int)t_ptr->cost)) + randint(8); | ^ misc3.c:100:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | msg_print ("You feel something roll beneath your feet."); | ^ misc3.c:78:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | void place_gold(y, x) | ^ In file included from misc3.c:16: ./externs.h:923:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 923 | void place_gold(); | ^ misc3.c:111:16: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | i = randint(t_level[0]) - 1; | ^ misc3.c:116:23: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | else if (randint(OBJ_GREAT) == 1) | ^ misc3.c:118:44: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | level = level * MAX_OBJ_LEVEL / randint (MAX_OBJ_LEVEL) + 1; | ^ misc3.c:130:15: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | if (randint(2) == 1) | ^ misc3.c:131:17: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 131 | i = randint(t_level[level]) - 1; | ^ misc3.c:135:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 135 | i = randint(t_level[level]) - 1; | ^ misc3.c:136:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 136 | j = randint(t_level[level]) - 1; | ^ misc3.c:139:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | j = randint(t_level[level]) - 1; | ^ misc3.c:144:14: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 144 | i = randint(t_level[0]) - 1; | ^ misc3.c:146:14: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | i = randint(t_level[j]-t_level[j-1]) - 1 + t_level[j-1]; | ^ misc3.c:150:20: warning: passing arguments to 'set_large' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 150 | && (set_large(&object_list[sorted_objects[i]]))); | ^ misc3.c:105:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | int get_obj_num(level,must_be_small) | ^ In file included from misc3.c:16: ./externs.h:924:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 924 | int get_obj_num(); | ^ misc3.c:166:10: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 166 | invcopy(&t_list[cur_pos], sorted_objects[tmp]); | ^ misc3.c:167:17: warning: passing arguments to 'magic_treasure' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 167 | magic_treasure(cur_pos, dun_level); | ^ misc3.c:169:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 169 | msg_print ("You feel something roll beneath your feet."); /* -CJS- */ | ^ misc3.c:157:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 157 | void place_object(y, x, must_be_small) | ^ In file included from misc3.c:16: ./externs.h:925:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 925 | void place_object(); | ^ misc3.c:184:15: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 184 | i = randint(cur_height) - 1; | ^ misc3.c:185:15: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 185 | j = randint(cur_width) - 1; | ^ misc3.c:189:28: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 189 | while ((!(*alloc_set)(cave[i][j].fval)) || | ^ misc3.c:192:40: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 192 | if (typ == 1) place_trap(i, j, randint(MAX_TRAP)-1); /* typ == 1 */ | ^ misc3.c:174:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 174 | void alloc_object(alloc_set, typ, num) | ^ In file included from misc3.c:16: ./externs.h:926:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 926 | void alloc_object(); | ^ misc3.c:214:23: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 214 | j = y - 3 + randint(5); | ^ misc3.c:215:23: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 215 | k = x - 4 + randint(7); | ^ misc3.c:217:17: warning: passing arguments to 'in_bounds' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 217 | if (in_bounds(j, k) && (cave_ptr->fval <= MAX_CAVE_FLOOR) | ^ misc3.c:220:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 220 | if (randint(100) < 75) | ^ misc3.c:203:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 203 | void random_object(y, x, num) | ^ In file included from misc3.c:16: ./externs.h:927:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 927 | void random_object(); | ^ misc3.c:236:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 236 | void cnv_stat(stat, out_val) | ^ In file included from misc3.c:16: ./externs.h:928:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 928 | void cnv_stat(); | ^ misc3.c:263:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 263 | put_buffer(stat_names[stat], 6+stat, STAT_COLUMN); | ^ misc3.c:264:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 264 | put_buffer (out_val1, 6+stat, STAT_COLUMN+6); | ^ misc3.c:257:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 257 | void prt_stat(stat) | ^ In file included from misc3.c:16: ./externs.h:929:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 929 | void prt_stat(); | ^ misc3.c:274:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 274 | put_buffer (&blank_string[BLANK_LENGTH-13], row, column); | ^ misc3.c:275:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 275 | put_buffer (info, row, column); | ^ misc3.c:270:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 270 | void prt_field(info, row, column) | ^ In file included from misc3.c:16: ./externs.h:930:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 930 | void prt_field(); | ^ misc3.c:287:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 287 | put_buffer(out_val, row, column); | ^ misc3.c:279:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 279 | static void prt_lnum(header, num, row, column) | ^ misc3.c:299:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 299 | put_buffer(out_val, row, column); | ^ misc3.c:291:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 291 | static void prt_7lnum(header, num, row, column) | ^ misc3.c:310:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 310 | put_buffer(out_val, row, column); | ^ misc3.c:303:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 303 | static void prt_num(header, num, row, column) | ^ misc3.c:321:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 321 | put_buffer(out_val, row, column); | ^ misc3.c:314:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 314 | static void prt_long(num, row, column) | ^ misc3.c:331:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 331 | put_buffer(out_val, row, column); | ^ misc3.c:325:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 325 | static void prt_int(num, row, column) | ^ misc3.c:336:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 336 | int stat_adj(stat) | ^ In file included from misc3.c:16: ./externs.h:931:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 931 | int stat_adj(); | ^ misc3.c:499:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 499 | prt(depths, 23, 65); | ^ misc3.c:507:15: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 507 | put_buffer("Weak ", 23, 0); | ^ misc3.c:509:15: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 509 | put_buffer("Hungry", 23, 0); | ^ misc3.c:511:15: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 511 | put_buffer(&blank_string[BLANK_LENGTH-6], 23, 0); | ^ misc3.c:519:15: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 519 | put_buffer("Blind", 23, 7); | ^ misc3.c:521:15: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 521 | put_buffer(&blank_string[BLANK_LENGTH-5], 23, 7); | ^ misc3.c:529:15: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 529 | put_buffer("Confused", 23, 13); | ^ misc3.c:531:15: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 531 | put_buffer(&blank_string[BLANK_LENGTH-8], 23, 13); | ^ misc3.c:539:15: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 539 | put_buffer("Afraid", 23, 22); | ^ misc3.c:541:15: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 541 | put_buffer(&blank_string[BLANK_LENGTH-6], 23, 22); | ^ misc3.c:549:15: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 549 | put_buffer("Poisoned", 23, 29); | ^ misc3.c:551:15: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 551 | put_buffer(&blank_string[BLANK_LENGTH-8], 23, 29); | ^ misc3.c:569:16: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 569 | put_buffer ("Paralysed", 23, 38); | ^ misc3.c:578:18: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 578 | put_buffer (tmp, 23, 38); | ^ misc3.c:591:18: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 591 | put_buffer (tmp, 23, 38); | ^ misc3.c:593:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 593 | put_buffer ("Search", 23, 38); | ^ misc3.c:596:15: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 596 | put_buffer("Searching", 23, 38); | ^ misc3.c:598:15: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 598 | put_buffer(&blank_string[BLANK_LENGTH-10], 23, 38); | ^ misc3.c:611:16: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 611 | put_buffer ("Very Slow", 23, 49); | ^ misc3.c:613:16: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 613 | put_buffer ("Slow ", 23, 49); | ^ misc3.c:615:16: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 615 | put_buffer (&blank_string[BLANK_LENGTH-9], 23, 49); | ^ misc3.c:617:16: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 617 | put_buffer ("Fast ", 23, 49); | ^ misc3.c:619:16: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 619 | put_buffer ("Very Fast", 23, 49); | ^ misc3.c:635:16: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 635 | put_buffer (&blank_string[BLANK_LENGTH-5], 23, 59); | ^ misc3.c:637:16: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 637 | put_buffer ("Study", 23, 59); | ^ misc3.c:647:12: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 647 | put_buffer("Is wizard ", 22, 0); | ^ misc3.c:649:12: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 649 | put_buffer("Was wizard ", 22, 0); | ^ misc3.c:652:15: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 652 | put_buffer("Resurrected", 22, 0); | ^ misc3.c:654:16: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 654 | put_buffer ("Duplicate", 22, 0); | ^ misc3.c:656:15: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 656 | put_buffer("*Winner* ", 22, 0); | ^ misc3.c:660:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 660 | int8u modify_stat (stat, amount) | ^ In file included from misc3.c:16: ./externs.h:952:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 952 | int8u modify_stat(); | ^ misc3.c:717:18: warning: passing arguments to 'calc_spells' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 717 | calc_spells(A_INT); | ^ misc3.c:718:16: warning: passing arguments to 'calc_mana' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 718 | calc_mana(A_INT); | ^ misc3.c:722:18: warning: passing arguments to 'calc_spells' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 722 | calc_spells(A_WIS); | ^ misc3.c:723:16: warning: passing arguments to 'calc_mana' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 723 | calc_mana(A_WIS); | ^ misc3.c:695:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 695 | void set_use_stat(stat) | ^ In file included from misc3.c:16: ./externs.h:953:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 953 | void set_use_stat(); | ^ misc3.c:745:23: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 745 | tmp_stat += randint(gain) + gain; | ^ misc3.c:731:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 731 | int inc_stat(stat) | ^ In file included from misc3.c:16: ./externs.h:954:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 954 | int inc_stat(); | ^ misc3.c:776:24: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 776 | tmp_stat += -randint(loss) - loss; | ^ misc3.c:763:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 763 | int dec_stat(stat) | ^ In file included from misc3.c:16: ./externs.h:955:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 955 | int dec_stat(); | ^ misc3.c:794:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 794 | int res_stat (stat) | ^ In file included from misc3.c:16: ./externs.h:956:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 956 | int res_stat(); | ^ misc3.c:812:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 812 | void bst_stat (stat, amount) | ^ In file included from misc3.c:16: ./externs.h:957:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 957 | void bst_stat(); | ^ misc3.c:976:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 976 | put_buffer ("Name :", 2, 1); | ^ misc3.c:977:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 977 | put_buffer ("Race :", 3, 1); | ^ misc3.c:978:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 978 | put_buffer ("Sex :", 4, 1); | ^ misc3.c:979:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 979 | put_buffer ("Class :", 5, 1); | ^ misc3.c:982:18: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 982 | put_buffer (m_ptr->name, 2, 15); | ^ misc3.c:983:18: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 983 | put_buffer (race[m_ptr->prace].trace, 3, 15); | ^ misc3.c:984:18: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 984 | put_buffer ((m_ptr->male ? "Male" : "Female"), 4, 15); | ^ misc3.c:985:18: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 985 | put_buffer (class[m_ptr->pclass].title, 5, 15); | ^ misc3.c:1001:18: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1001 | put_buffer (stat_names[i], 2+i, 61); | ^ misc3.c:1002:18: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1002 | put_buffer (buf, 2+i, 66); | ^ misc3.c:1006:15: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1006 | put_buffer (buf, 2+i, 73); | ^ misc3.c:1017:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1017 | char *likert(x, y) | ^ In file included from misc3.c:16: ./externs.h:966:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 966 | char *likert(); | ^ misc3.c:1057:9: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1057 | prt ("Exp to Adv.: *******", 12, 28); | ^ misc3.c:1076:13: warning: passing arguments to 'clear_from' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1076 | clear_from(14); | ^ misc3.c:1097:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1097 | put_buffer ("(Miscellaneous Abilities)", 15, 25); | ^ misc3.c:1098:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1098 | put_buffer ("Fighting :", 16, 1); | ^ misc3.c:1099:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1099 | put_buffer (likert (xbth, 12), 16, 15); | ^ misc3.c:1100:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1100 | put_buffer ("Bows/Throw :", 17, 1); | ^ misc3.c:1101:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1101 | put_buffer (likert (xbthb, 12), 17, 15); | ^ misc3.c:1102:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1102 | put_buffer ("Saving Throw:", 18, 1); | ^ misc3.c:1103:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1103 | put_buffer (likert (xsave, 6), 18, 15); | ^ misc3.c:1105:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1105 | put_buffer ("Stealth :", 16, 28); | ^ misc3.c:1106:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1106 | put_buffer (likert (xstl, 1), 16, 42); | ^ misc3.c:1107:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1107 | put_buffer ("Disarming :", 17, 28); | ^ misc3.c:1108:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1108 | put_buffer (likert (xdis, 8), 17, 42); | ^ misc3.c:1109:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1109 | put_buffer ("Magic Device:", 18, 28); | ^ misc3.c:1110:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1110 | put_buffer (likert (xdev, 6), 18, 42); | ^ misc3.c:1112:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1112 | put_buffer ("Perception :", 16, 55); | ^ misc3.c:1113:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1113 | put_buffer (likert (xfos, 3), 16, 69); | ^ misc3.c:1114:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1114 | put_buffer ("Searching :", 17, 55); | ^ misc3.c:1115:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1115 | put_buffer (likert (xsrh, 6), 17, 69); | ^ misc3.c:1116:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1116 | put_buffer ("Infra-Vision:", 18, 55); | ^ misc3.c:1117:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1117 | put_buffer (xinfra, 18, 69); | ^ misc3.c:1135:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1135 | prt("Enter your player's name [press when finished]", 21, 2); | ^ misc3.c:1136:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1136 | put_buffer (&blank_string[BLANK_LENGTH-23], 2, 15); | ^ misc3.c:1142:18: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1142 | if (!get_string(py.misc.name, 2, 15, 23) || py.misc.name[0] == 0) | ^ misc3.c:1145:18: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1145 | put_buffer (py.misc.name, 2, 15); | ^ misc3.c:1148:14: warning: passing arguments to 'clear_from' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1148 | clear_from (20); | ^ misc3.c:1169:10: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1169 | prt( "ile character description. hange character name.", 21, 2); | ^ misc3.c:1183:8: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1183 | prt ("File name:", 0, 0); | ^ misc3.c:1184:19: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1184 | if (get_string (temp, 0, 10, 60) && temp[0]) | ^ misc3.c:1185:25: warning: passing arguments to 'file_character' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1185 | if (file_character (temp)) | ^ misc3.c:1223:14: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1223 | invcopy(&inventory[inven_ctr-1], OBJ_NOTHING); | ^ misc3.c:1203:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1203 | void inven_destroy(item_val) | ^ In file included from misc3.c:16: ./externs.h:973:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 973 | void inven_destroy(); | ^ misc3.c:1236:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1236 | void take_one_item (s_ptr, i_ptr) | ^ In file included from misc3.c:16: ./externs.h:974:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 974 | void take_one_item(); | ^ misc3.c:1259:25: warning: passing arguments to 'delete_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1259 | (void) delete_object(char_row, char_col); | ^ misc3.c:1266:13: warning: passing arguments to 'takeoff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1266 | takeoff (item_val, -1); | ^ misc3.c:1278:11: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1278 | invcopy(&inventory[inven_ctr], OBJ_NOTHING); | ^ misc3.c:1286:14: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1286 | objdes (prt1, &t_list[i], TRUE); | ^ misc3.c:1288:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1288 | msg_print (prt2); | ^ misc3.c:1247:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1247 | void inven_drop(item_val, drop_all) | ^ In file included from misc3.c:16: ./externs.h:975:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 975 | void inven_drop(); | ^ misc3.c:1307:15: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1307 | if ((*typ)(&inventory[i]) && (randint(100) < perc)) | ^ misc3.c:1307:42: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1307 | if ((*typ)(&inventory[i]) && (randint(100) < perc)) | ^ misc3.c:1299:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1299 | int inven_damage(typ, perc) | ^ In file included from misc3.c:16: ./externs.h:976:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 976 | int inven_damage(); | ^ misc3.c:1344:16: warning: passing arguments to 'known1_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1344 | && (known1_p(&inventory[i]) == known1_p(t_ptr))) | ^ misc3.c:1344:43: warning: passing arguments to 'known1_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1344 | && (known1_p(&inventory[i]) == known1_p(t_ptr))) | ^ misc3.c:1328:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1328 | int inven_check_num (t_ptr) | ^ In file included from misc3.c:16: ./externs.h:978:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 978 | int inven_check_num(); | ^ misc3.c:1350:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1350 | int inven_check_weight(i_ptr) | ^ In file included from misc3.c:16: ./externs.h:979:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 979 | int inven_check_weight(); | ^ misc3.c:1384:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1384 | msg_print("You have trouble wielding such a heavy weapon."); | ^ misc3.c:1393:11: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1393 | msg_print("You are strong enough to wield your weapon."); | ^ misc3.c:1404:11: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1404 | msg_print("Your pack is so heavy that it slows you down."); | ^ misc3.c:1406:11: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1406 | msg_print("You move more easily under the weight of your pack."); | ^ misc3.c:1407:19: warning: passing arguments to 'change_speed' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1407 | change_speed(i - pack_heavy); | ^ misc3.c:1434:22: warning: passing arguments to 'known1_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1434 | known1p = known1_p (i_ptr); | ^ misc3.c:1435:35: warning: passing arguments to 'object_offset' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1435 | always_known1p = (object_offset (i_ptr) == -1); | ^ misc3.c:1445:24: warning: passing arguments to 'known1_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1445 | (known1p == known1_p(t_ptr))) | ^ misc3.c:1421:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1421 | int inven_carry(i_ptr) | ^ In file included from misc3.c:16: ./externs.h:981:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 981 | int inven_carry(); | ^ misc3.c:1475:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1475 | int spell_chance(spell) | ^ In file included from misc3.c:16: ./externs.h:982:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 982 | int spell_chance(); | ^ misc3.c:1519:13: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1519 | erase_line(1, col); | ^ misc3.c:1520:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1520 | put_buffer("Name", 1, col+5); | ^ misc3.c:1521:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1521 | put_buffer("Lv Mana Fail", 1, col+35); | ^ misc3.c:1549:10: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1549 | prt(out_val, 2+i, col); | ^ misc3.c:1502:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1502 | void print_spells(spell, num, comment, nonconsec) | ^ In file included from misc3.c:16: ./externs.h:983:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 983 | void print_spells(); | ^ misc3.c:1574:35: warning: passing arguments to 'get_com' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1574 | while (flag == FALSE && get_com (out_str, &choice)) | ^ misc3.c:1591:22: warning: passing arguments to 'get_check' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1591 | if (get_check (tmp_str)) | ^ misc3.c:1630:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1630 | msg_print(tmp_str); | ^ misc3.c:1636:13: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1636 | erase_line(MSG_LINE, 0); | ^ misc3.c:1555:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1555 | int get_spell(spell, num, sn, sc, prompt, first_spell) | ^ In file included from misc3.c:16: ./externs.h:984:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 984 | int get_spell(); | ^ misc3.c:1682:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1682 | msg_print(tmp_str); | ^ misc3.c:1729:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1729 | msg_print(tmp_str); | ^ misc3.c:1778:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1778 | msg_print(tmp_str); | ^ misc3.c:1790:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1790 | msg_print(tmp_str); | ^ misc3.c:1646:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1646 | void calc_spells(stat) | ^ In file included from misc3.c:16: ./externs.h:985:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 985 | void calc_spells(); | ^ misc3.c:1816:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1816 | msg_print("You are too confused."); | ^ misc3.c:1833:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1833 | msg_print("You can't see to read your spell book!"); | ^ misc3.c:1838:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1838 | msg_print("You have no light to read by."); | ^ misc3.c:1856:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1856 | msg_print(tmp_str); | ^ misc3.c:1891:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1891 | msg_print("You seem to be missing a book."); | ^ misc3.c:1902:33: warning: passing arguments to 'get_com' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1902 | while (new_spells && get_com ("Learn which spell?", &query)) | ^ misc3.c:1915:16: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1915 | erase_line (j+1, 31); | ^ misc3.c:1928:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1928 | j = randint(i) - 1; | ^ misc3.c:1934:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1934 | msg_print(tmp_str); | ^ misc3.c:1947:11: warning: passing arguments to 'calc_mana' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1947 | calc_mana(stat); | ^ misc3.c:1953:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1953 | void calc_mana(stat) | ^ In file included from misc3.c:16: ./externs.h:987:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 987 | void calc_mana(); | ^ misc3.c:2032:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2032 | msg_print(out_val); | ^ misc3.c:2120:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2120 | void insert_str(object_str, mtc_str, insert) | ^ In file included from misc3.c:16: ./externs.h:990:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 990 | void insert_str(); | ^ misc3.c:2210:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2210 | void insert_lnum(object_str, mtc_str, number, show_sign) | ^ In file included from misc3.c:16: ./externs.h:991:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 991 | void insert_lnum(); | ^ misc3.c:2257:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2257 | msg_print("Wizard mode is for debugging and experimenting."); | ^ misc3.c:2258:25: warning: passing arguments to 'get_check' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2258 | answer = get_check( | ^ misc3.c:2272:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2272 | int attack_blows(weight, wtohit) | ^ In file included from misc3.c:16: ./externs.h:993:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 993 | int attack_blows(); | ^ misc3.c:2309:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2309 | int tot_dam(i_ptr, tdam, monster) | ^ In file included from misc3.c:16: ./externs.h:994:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 994 | int tot_dam(); | ^ misc3.c:2401:14: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2401 | if (randint(5000) <= (int)(weight + 5 * plus | ^ misc3.c:2405:24: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2405 | weight += randint(650); | ^ misc3.c:2409:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2409 | msg_print("It was a good hit! (x2 damage)"); | ^ misc3.c:2414:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2414 | msg_print("It was an excellent hit! (x3 damage)"); | ^ misc3.c:2419:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2419 | msg_print("It was a superb hit! (x4 damage)"); | ^ misc3.c:2424:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2424 | msg_print("It was a *GREAT* hit! (x5 damage)"); | ^ misc3.c:2392:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2392 | int critical_blow(weight, plus, dam, attack_type) | ^ In file included from misc3.c:16: ./externs.h:995:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 995 | int critical_blow(); | ^ misc3.c:2432:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2432 | int mmove(dir, y, x) | ^ In file included from misc3.c:16: ./externs.h:996:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 996 | int mmove(); | ^ misc3.c:2495:14: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2495 | if (randint(100) <= (py.misc.save + stat_adj(A_WIS) | ^ misc3.c:2504:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2504 | int find_range(item1, item2, j, k) | ^ In file included from misc3.c:16: ./externs.h:998:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 998 | int find_range(); | ^ misc3.c:2552:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2552 | y = randint(cur_height) - 1; | ^ misc3.c:2553:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2553 | x = randint(cur_width) - 1; | ^ misc3.c:2554:22: warning: passing arguments to 'distance' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2554 | while (distance(y, x, char_row, char_col) > dis) | ^ misc3.c:2561:11: warning: passing arguments to 'move_rec' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2561 | move_rec(char_row, char_col, y, x); | ^ misc3.c:2566:11: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2566 | lite_spot(i, j); | ^ misc3.c:2568:12: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2568 | lite_spot(char_row, char_col); | ^ misc3.c:2572:12: warning: passing arguments to 'creatures' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2572 | creatures(FALSE); | ^ misc3.c:2545:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2545 | void teleport(dis) | ^ In file included from misc3.c:16: ./externs.h:999:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 999 | void teleport(); | ^ 257 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c misc4.c In file included from misc4.c:16: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from misc4.c:16: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ misc4.c:40:19: warning: passing arguments to 'get_item' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | if (get_item(&item_val, "Which one? ", 0, INVEN_ARRAY_SIZE, CNIL, CNIL)) | ^ misc4.c:42:10: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | objdes(tmp_str, &inventory[item_val], TRUE); | ^ misc4.c:44:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | msg_print(out_val); | ^ misc4.c:53:7: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | prt(out_val, 0, 0); | ^ misc4.c:54:18: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | if (get_string(out_val, 0, (int)strlen(out_val), j)) | ^ misc4.c:55:14: warning: passing arguments to 'inscribe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | inscribe(&inventory[item_val], out_val); | ^ misc4.c:59:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | msg_print("You are not carrying anything to inscribe."); | ^ misc4.c:63:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | void add_inscribe(i_ptr, type) | ^ In file included from misc4.c:16: ./externs.h:1003:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1003 | void add_inscribe(); | ^ misc4.c:71:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | void inscribe(i_ptr, str) | ^ In file included from misc4.c:16: ./externs.h:1004:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1004 | void inscribe(); | ^ misc4.c:87:16: warning: passing arguments to 'get_panel' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | if (get_panel(char_row, char_col, FALSE)) | ^ misc4.c:90:13: warning: passing arguments to 'move_light' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | move_light(char_row, char_col, char_row, char_col); | ^ misc4.c:95:12: warning: passing arguments to 'light_room' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | light_room(char_row, char_col); | ^ misc4.c:105:18: warning: passing arguments to 'light_room' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | light_room(i, j); | ^ 17 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c store1.c In file included from store1.c:12: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from store1.c:12: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ store1.c:44:20: warning: passing arguments to 'known2_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | if (!known2_p(i_ptr)) | ^ store1.c:67:20: warning: passing arguments to 'known2_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | if (!known2_p(i_ptr)) | ^ store1.c:86:20: warning: passing arguments to 'known1_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | if (!known1_p(i_ptr)) | ^ store1.c:92:16: warning: passing arguments to 'known1_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | && !known1_p(i_ptr)) | ^ store1.c:97:20: warning: passing arguments to 'known1_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | if (!known1_p(i_ptr)) | ^ store1.c:100:25: warning: passing arguments to 'known2_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | else if (!known2_p(i_ptr)) | ^ store1.c:108:20: warning: passing arguments to 'known1_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 108 | if (!known1_p(i_ptr)) | ^ store1.c:115:24: warning: passing arguments to 'known2_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | else if (known2_p(i_ptr)) | ^ store1.c:121:20: warning: passing arguments to 'known2_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 121 | if (!known2_p(i_ptr)) | ^ store1.c:32:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | int32 item_value(i_ptr) | ^ In file included from store1.c:12: ./externs.h:1234:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1234 | int32 item_value(); | ^ store1.c:146:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | int32 sell_price(snum, max_sell, min_sell, item) | ^ In file included from store1.c:12: ./externs.h:1235:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1235 | int32 sell_price(); | ^ store1.c:173:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 173 | int store_check_num(t_ptr, store_num) | ^ In file included from store1.c:12: ./externs.h:1236:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1236 | int store_check_num(); | ^ store1.c:202:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 202 | static void insert_store(store_num, pos, icost, i_ptr) | ^ store1.c:26:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 26 | static void insert_store(); | ^ store1.c:221:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | void store_carry(store_num, ipos, t_ptr) | ^ In file included from store1.c:12: ./externs.h:1237:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1237 | void store_carry(); | ^ store1.c:306:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 306 | number = randint((int)i_ptr->number); | ^ store1.c:317:14: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 317 | invcopy(&s_ptr->store_inven[s_ptr->store_ctr-1].sitem, OBJ_NOTHING); | ^ store1.c:286:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 286 | void store_destroy(store_num, item_val, one_of) | ^ In file included from store1.c:12: ./externs.h:1238:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1238 | void store_destroy(); | ^ store1.c:334:41: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 334 | s_ptr->owner = MAX_STORES*(randint(i)-1) + j; | ^ store1.c:342:11: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 342 | invcopy(&s_ptr->store_inven[k].sitem, OBJ_NOTHING); | ^ store1.c:363:42: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 363 | i = store_choice[store_num][randint(STORE_CHOICES)-1]; | ^ store1.c:364:14: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 364 | invcopy(&t_list[cur_pos], i); | ^ store1.c:365:21: warning: passing arguments to 'magic_treasure' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 365 | magic_treasure(cur_pos, OBJ_TOWN_LEVEL); | ^ store1.c:374:20: warning: passing arguments to 'store_bought' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 374 | store_bought(t_ptr); | ^ store1.c:382:8: warning: passing arguments to 'pusht' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 382 | pusht((int8u)cur_pos); | ^ store1.c:350:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 350 | static void store_create(store_num) | ^ store1.c:27:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 27 | static void store_create(); | ^ store1.c:398:15: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 398 | j = randint(STORE_TURN_AROUND); | ^ store1.c:402:30: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 402 | store_destroy(i, randint((int)s_ptr->store_ctr)-1, FALSE); | ^ store1.c:407:15: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 407 | j = randint(STORE_TURN_AROUND); | ^ store1.c:417:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 417 | int noneedtobargain(store_num, minprice) | ^ In file included from store1.c:12: ./externs.h:1241:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1241 | int noneedtobargain(); | ^ store1.c:450:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] 450 | else | ^ store1.c:437:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 437 | void updatebargain(store_num, price, minprice) | ^ In file included from store1.c:12: ./externs.h:1242:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1242 | void updatebargain(); | ^ 42 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c files.c In file included from files.c:57: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from files.c:57: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ files.c:85:23: warning: passing arguments to 'tfopen' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | highscore_fp = fopen(MORIA_TOP, "r+"); | ^ files.c:127:21: warning: passing arguments to 'tfopen' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 127 | if ((file1 = fopen(MORIA_HOU, "r")) != NULL) | ^ files.c:161:25: warning: passing arguments to 'tfopen' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 161 | if ((file1 = fopen(MORIA_HOU, "r")) != NULL) | ^ files.c:168:16: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 168 | put_buffer(in_line, i, 0); | ^ files.c:169:15: warning: passing arguments to 'pause_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 169 | pause_line (23); | ^ files.c:177:21: warning: passing arguments to 'tfopen' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 177 | if ((file1 = fopen(MORIA_MOR, "r")) != NULL) | ^ files.c:184:12: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 184 | put_buffer(in_line, i, 0); | ^ files.c:185:17: warning: passing arguments to 'pause_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 185 | pause_line(23); | ^ files.c:206:15: warning: passing arguments to 'tfopen' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 206 | file = fopen(filename, "r"); | ^ files.c:210:11: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 210 | prt (tmp_str, 0, 0); | ^ files.c:221:15: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | put_buffer (tmp_str, i, 0); | ^ files.c:222:10: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 222 | prt("[Press any key to continue.]", 23, 23); | ^ files.c:193:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 193 | void helpfile(filename) | ^ In file included from files.c:57: ./externs.h:822:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 822 | void helpfile(); | ^ files.c:250:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 250 | prt("Produce objects on what level?: ", 0, 0); | ^ files.c:252:18: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 252 | if (!get_string(tmp_str, 0, 32, 10)) | ^ files.c:255:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 255 | prt("Produce how many objects?: ", 0, 0); | ^ files.c:257:18: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 257 | if (!get_string(tmp_str, 0, 27, 10)) | ^ files.c:260:20: warning: passing arguments to 'get_check' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 260 | small = get_check("Small objects only?"); | ^ files.c:269:10: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 269 | prt("File name: ", 0, 0); | ^ files.c:270:21: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 270 | if (get_string(filename1, 0, 11, 64)) | ^ files.c:278:22: warning: passing arguments to 'tfopen' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 278 | if ((file1 = fopen(filename1, "w")) != NULL) | ^ files.c:285:11: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 285 | prt(strcat(tmp_str, " random objects being produced..."), 0, 0); | ^ files.c:296:32: warning: passing arguments to 'get_obj_num' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 296 | sorted_objects[get_obj_num(level,small)]); | ^ files.c:295:12: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 295 | invcopy(&t_list[j], | ^ files.c:297:19: warning: passing arguments to 'magic_treasure' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 297 | magic_treasure(j, level); | ^ files.c:299:17: warning: passing arguments to 'store_bought' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 299 | store_bought(i_ptr); | ^ files.c:305:19: warning: passing arguments to 'add_inscribe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 305 | add_inscribe(i_ptr, ID_DAMD); | ^ files.c:306:11: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 306 | objdes(tmp_str, i_ptr, TRUE); | ^ files.c:309:13: warning: passing arguments to 'pusht' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 309 | pusht((int8u)j); | ^ files.c:315:11: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 315 | prt("Completed.", 0, 0); | ^ files.c:318:9: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 318 | prt("File could not be opened.", 0, 0); | ^ files.c:325:9: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 325 | prt ("Parameters no good.", 0, 0); | ^ files.c:376:13: warning: passing arguments to 'topen' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 376 | fd = open (filename1, O_WRONLY|O_CREAT|O_EXCL, 0644); | ^ files.c:380:20: warning: passing arguments to 'get_check' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 380 | if (get_check(out_val)) | ^ files.c:381:11: warning: passing arguments to 'topen' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 381 | fd = open(filename1, O_WRONLY, 0644); | ^ files.c:390:20: warning: passing arguments to 'tfopen' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 390 | file1 = fopen(filename1, "w"); | ^ files.c:401:10: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 401 | prt("Writing character sheet...", 0, 0); | ^ files.c:412:15: warning: passing arguments to 'cnv_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 412 | cnv_stat(py.stats.use_stat[A_STR], prt1); | ^ files.c:417:15: warning: passing arguments to 'cnv_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 417 | cnv_stat(py.stats.use_stat[A_INT], prt1); | ^ files.c:422:15: warning: passing arguments to 'cnv_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 422 | cnv_stat(py.stats.use_stat[A_WIS], prt1); | ^ files.c:427:15: warning: passing arguments to 'cnv_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 427 | cnv_stat(py.stats.use_stat[A_DEX], prt1); | ^ files.c:431:15: warning: passing arguments to 'cnv_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 431 | cnv_stat(py.stats.use_stat[A_CON], prt1); | ^ files.c:435:15: warning: passing arguments to 'cnv_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 435 | cnv_stat(py.stats.use_stat[A_CHR], prt1); | ^ files.c:470:56: warning: passing arguments to 'stat_adj' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 470 | xdis = p_ptr->disarm + 2 * todis_adj() + stat_adj(A_INT) | ^ files.c:472:37: warning: passing arguments to 'stat_adj' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 472 | xsave = p_ptr->save + stat_adj(A_WIS) | ^ files.c:474:36: warning: passing arguments to 'stat_adj' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 474 | xdev = p_ptr->save + stat_adj(A_INT) | ^ files.c:480:59: warning: passing arguments to 'likert' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 480 | (void) fprintf(file1, " Fighting : %-10s", likert(xbth, 12)); | ^ files.c:481:61: warning: passing arguments to 'likert' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 481 | (void) fprintf(file1, " Stealth : %-10s", likert(xstl, 1)); | ^ files.c:482:60: warning: passing arguments to 'likert' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 482 | (void) fprintf(file1, " Perception : %s\n", likert(xfos, 3)); | ^ files.c:483:59: warning: passing arguments to 'likert' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 483 | (void) fprintf(file1, " Bows/Throw : %-10s", likert(xbthb, 12)); | ^ files.c:484:61: warning: passing arguments to 'likert' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 484 | (void) fprintf(file1, " Disarming : %-10s", likert(xdis, 8)); | ^ files.c:485:60: warning: passing arguments to 'likert' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 485 | (void) fprintf(file1, " Searching : %s\n", likert(xsrh, 6)); | ^ files.c:486:59: warning: passing arguments to 'likert' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 486 | (void) fprintf(file1, " Saving Throw: %-10s", likert(xsave, 6)); | ^ files.c:487:61: warning: passing arguments to 'likert' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 487 | (void) fprintf(file1, " Magic Device: %-10s", likert(xdev, 6)); | ^ files.c:520:9: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 520 | objdes(prt2, &inventory[i], TRUE); | ^ files.c:539:14: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 539 | objdes(prt2, &inventory[i], TRUE); | ^ files.c:551:10: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 551 | prt("Completed.", 0, 0); | ^ files.c:559:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 559 | msg_print(out_val); | ^ files.c:333:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 333 | int file_character(filename1) | ^ In file included from files.c:57: ./externs.h:824:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 824 | int file_character(); | ^ 63 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c io.c In file included from io.c:143: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from io.c:143: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ io.c:192:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 192 | char *getenv(); | ^ /usr/include/stdlib.h:110:7: note: conflicting prototype is here 110 | char *getenv(const char *); | ^ io.c:197:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 197 | void exit(); | ^ io.c:202:10: warning: a function 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] 202 | unsigned sleep(); | ^ /usr/include/unistd.h:370:14: note: conflicting prototype is here 370 | unsigned int sleep(unsigned int); | ^ In file included from io.c:143: ./externs.h:845:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 845 | void suspend(); | ^ io.c:246:6: note: conflicting prototype is here 246 | void suspend(int sig) | ^ io.c:519:10: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 519 | prt(tmp_str, 0, 0); | ^ io.c:492:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 492 | void put_buffer(out_str, row, col) | ^ In file included from io.c:143: ./externs.h:849:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 849 | void put_buffer(); | ^ io.c:754:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 754 | if (str = getenv("SHELL")) | ~~~~^~~~~~~~~~~~~~~~~ io.c:754:15: note: place parentheses around the assignment to silence this warning 754 | if (str = getenv("SHELL")) | ^ | ( ) io.c:754:15: note: use '==' to turn this assignment into an equality comparison 754 | if (str = getenv("SHELL")) | ^ | == io.c:764:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 764 | msg_print("Cannot execute shell."); | ^ io.c:770:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 770 | msg_print("Fork failed. Try again."); | ^ io.c:774:10: warning: call to undeclared function 'wait'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 774 | (void) wait((int *) 0); | ^ io.c:913:11: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 913 | disturb(1, 0); | ^ io.c:1051:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1051 | msg_print(CNIL); | ^ io.c:1032:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1032 | void erase_line(row, col) | ^ In file included from io.c:143: ./externs.h:855:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 855 | void erase_line(); | ^ io.c:1075:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1075 | msg_print(CNIL); | ^ io.c:1087:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1087 | void clear_from (row) | ^ In file included from io.c:143: ./externs.h:857:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 857 | void clear_from(); | ^ io.c:1141:10: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1141 | prt(tmp_str, 0, 0); | ^ io.c:1109:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1109 | void print(ch, row, col) | ^ In file included from io.c:143: ./externs.h:858:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 858 | void print(); | ^ io.c:1175:10: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1175 | prt(tmp_str, 0, 0); | ^ io.c:1151:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1151 | void move_cursor_relative(row, col) | ^ In file included from io.c:143: ./externs.h:859:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 859 | void move_cursor_relative(); | ^ io.c:1191:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1191 | msg_print(p); | ^ io.c:1185:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1185 | void count_msg_print(p) | ^ In file included from io.c:143: ./externs.h:860:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 860 | void count_msg_print(); | ^ io.c:1219:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1219 | msg_print(CNIL); | ^ io.c:1197:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1197 | void prt(str_buff, row, col) | ^ In file included from io.c:143: ./externs.h:861:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 861 | void prt(); | ^ io.c:1228:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1228 | void move_cursor(row, col) | ^ In file included from io.c:143: ./externs.h:862:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 862 | void move_cursor(); | ^ io.c:1243:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1243 | void msg_print(str_buff) | ^ In file included from io.c:143: ./externs.h:863:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 863 | void msg_print(); | ^ io.c:1331:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1331 | int get_check(prompt) | ^ In file included from io.c:143: ./externs.h:864:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 864 | int get_check(); | ^ io.c:1377:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1377 | int get_com(prompt, command) | ^ In file included from io.c:143: ./externs.h:865:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 865 | int get_com(); | ^ io.c:1417:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1417 | int get_string(in_str, row, column, slen) | ^ In file included from io.c:143: ./externs.h:866:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 866 | int get_string(); | ^ io.c:1500:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1500 | void pause_line(prt_line) | ^ In file included from io.c:143: ./externs.h:867:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 867 | void pause_line(); | ^ io.c:1512:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1512 | void pause_exit(prt_line, delay) | ^ In file included from io.c:143: ./externs.h:868:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 868 | void pause_exit(); | ^ io.c:1678:20: warning: passing arguments to 'loc_symbol' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1678 | tmp = loc_symbol(i, j); | ^ 47 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c create.c In file included from create.c:16: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from create.c:16: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ create.c:51:22: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | dice[i] = randint (3 + i % 3); /* Roll 3,4,5 sided dice once each */ | ^ create.c:77:24: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | tmp_stat += -randint(6) - 2; | ^ create.c:80:26: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | tmp_stat += -randint(15) - 5; | ^ create.c:93:23: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 93 | tmp_stat += randint(15) + 5; | ^ create.c:95:23: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | tmp_stat += randint(6) + 2; | ^ create.c:63:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | static void change_stat(stat, amount) | ^ create.c:124:20: warning: passing arguments to 'set_use_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | set_use_stat (j); | ^ create.c:157:14: warning: passing arguments to 'clear_from' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 157 | clear_from (20); | ^ create.c:158:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | put_buffer("Choose a race (? for Help):", 20, 2); | ^ create.c:162:17: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 162 | put_buffer(tmp_str, m, l); | ^ create.c:176:19: warning: passing arguments to 'move_cursor' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 176 | move_cursor (20, 30); | ^ create.c:182:11: warning: passing arguments to 'helpfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | helpfile (MORIA_WELCOME); | ^ create.c:191:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 191 | put_buffer(r_ptr->trace, 3, 15); | ^ create.c:200:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 200 | put_buffer("Character Background", 14, 27); | ^ create.c:202:8: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 202 | prt(py.misc.history[i], i+15, 10); | ^ create.c:221:25: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | social_class = randint(4); | ^ create.c:230:27: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 230 | test_roll = randint(100); | ^ create.c:299:14: warning: passing arguments to 'clear_from' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 299 | clear_from (20); | ^ create.c:300:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 300 | put_buffer("Choose a sex (? for Help):", 20, 2); | ^ create.c:301:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 301 | put_buffer("m) Male f) Female", 21, 2); | ^ create.c:304:19: warning: passing arguments to 'move_cursor' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 304 | move_cursor (20, 29); | ^ create.c:310:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 310 | put_buffer("Female", 4, 15); | ^ create.c:316:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 316 | put_buffer("Male", 4, 15); | ^ create.c:320:11: warning: passing arguments to 'helpfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 320 | helpfile (MORIA_WELCOME); | ^ create.c:334:40: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 334 | py.misc.age = race[i].b_age + randint((int)race[i].m_age); | ^ create.c:337:27: warning: passing arguments to 'randnor' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 337 | py.misc.ht = randnor((int)race[i].m_b_ht, (int)race[i].m_m_ht); | ^ create.c:338:27: warning: passing arguments to 'randnor' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 338 | py.misc.wt = randnor((int)race[i].m_b_wt, (int)race[i].m_m_wt); | ^ create.c:342:27: warning: passing arguments to 'randnor' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 342 | py.misc.ht = randnor((int)race[i].f_b_ht, (int)race[i].f_m_ht); | ^ create.c:343:27: warning: passing arguments to 'randnor' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 343 | py.misc.wt = randnor((int)race[i].f_b_wt, (int)race[i].f_m_wt); | ^ create.c:369:14: warning: passing arguments to 'clear_from' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 369 | clear_from (20); | ^ create.c:370:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 370 | put_buffer("Choose a class (? for Help):", 20, 2); | ^ create.c:376:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 376 | put_buffer(tmp_str, m, l); | ^ create.c:394:19: warning: passing arguments to 'move_cursor' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 394 | move_cursor (20, 31); | ^ create.c:402:15: warning: passing arguments to 'clear_from' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 402 | clear_from (20); | ^ create.c:403:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 403 | put_buffer(c_ptr->title, 5, 15); | ^ create.c:416:20: warning: passing arguments to 'set_use_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 416 | set_use_stat(i); | ^ create.c:451:27: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 451 | player_hp[i] = randint((int)m_ptr->hitdie); | ^ create.c:469:11: warning: passing arguments to 'helpfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 469 | helpfile (MORIA_WELCOME); | ^ create.c:479:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 479 | static int monval (i) | ^ create.c:496:33: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 496 | gold = py.misc.sc*6 + randint (25) + 325; /* Social Class adj */ | ^ create.c:526:14: warning: passing arguments to 'clear_from' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 526 | clear_from (20); | ^ create.c:527:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 527 | put_buffer("Hit space to reroll or ESC to accept characteristics: ", 20, 2); | ^ create.c:530:19: warning: passing arguments to 'move_cursor' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 530 | move_cursor (20, 56); | ^ create.c:558:13: warning: passing arguments to 'pause_exit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 558 | pause_exit(23, PLAYER_EXIT_PAUSE); | ^ 46 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c desc.c In file included from desc.c:17: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from desc.c:17: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ desc.c:42:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | int is_a_vowel(ch) | ^ In file included from desc.c:17: ./externs.h:794:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 794 | int is_a_vowel(); | ^ desc.c:62:11: warning: passing arguments to 'set_seed' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | set_seed(randes_seed); | ^ desc.c:67:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | j = randint(MAX_COLORS - 3) + 2; | ^ desc.c:74:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | j = randint(MAX_WOODS) - 1; | ^ desc.c:81:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | j = randint(MAX_METALS) - 1; | ^ desc.c:88:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | j = randint(MAX_ROCKS) - 1; | ^ desc.c:95:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | j = randint(MAX_AMULETS) - 1; | ^ desc.c:102:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | j = randint(MAX_MUSH) - 1; | ^ desc.c:110:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | k = randint(2) + 1; | ^ desc.c:113:20: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 113 | for (j = randint(2); j > 0; j--) | ^ desc.c:114:45: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | (void) strcat(string, syllables[randint(MAX_SYLLABLES) - 1]); | ^ desc.c:127:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 127 | int16 object_offset(t_ptr) | ^ In file included from desc.c:17: ./externs.h:796:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 796 | int16 object_offset(); | ^ desc.c:149:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 149 | void known1(i_ptr) | ^ In file included from desc.c:17: ./externs.h:797:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 797 | void known1(); | ^ desc.c:174:21: warning: passing arguments to 'store_bought_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 174 | if (store_bought_p(i_ptr)) | ^ desc.c:164:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 164 | int known1_p(i_ptr) | ^ In file included from desc.c:17: ./externs.h:798:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 798 | int known1_p(); | ^ desc.c:185:11: warning: passing arguments to 'unsample' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 185 | unsample(i_ptr); | ^ desc.c:182:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | void known2(i_ptr) | ^ In file included from desc.c:17: ./externs.h:799:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 799 | void known2(); | ^ desc.c:189:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 189 | int known2_p(i_ptr) | ^ In file included from desc.c:17: ./externs.h:800:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 800 | int known2_p(); | ^ desc.c:195:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 195 | void clear_known2(i_ptr) | ^ In file included from desc.c:17: ./externs.h:801:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 801 | void clear_known2(); | ^ desc.c:201:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 201 | void clear_empty(i_ptr) | ^ In file included from desc.c:17: ./externs.h:802:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 802 | void clear_empty(); | ^ desc.c:207:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 207 | void store_bought(i_ptr) | ^ In file included from desc.c:17: ./externs.h:803:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 803 | void store_bought(); | ^ desc.c:214:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 214 | int store_bought_p(i_ptr) | ^ In file included from desc.c:17: ./externs.h:804:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 804 | int store_bought_p(); | ^ desc.c:221:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | static void unsample(i_ptr) | ^ desc.c:30:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 30 | static void unsample(); | ^ desc.c:239:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 239 | void sample (i_ptr) | ^ In file included from desc.c:17: ./externs.h:805:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 805 | void sample(); | ^ desc.c:272:17: warning: passing arguments to 'add_inscribe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 272 | add_inscribe(i_ptr, ID_DAMD); | ^ desc.c:294:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 294 | msg_print ("You combine similar objects from the shop and dungeon."); | ^ desc.c:300:10: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 300 | invcopy(&inventory[j], OBJ_NOTHING); | ^ desc.c:255:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 255 | void identify(item) | ^ In file included from desc.c:17: ./externs.h:806:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 806 | void identify(); | ^ desc.c:309:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 309 | void unmagic_name(i_ptr) | ^ In file included from desc.c:17: ./externs.h:807:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 807 | void unmagic_name(); | ^ desc.c:531:17: warning: passing arguments to 'insert_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 531 | insert_str(tmp_val, "ch~", "ches"); | ^ desc.c:532:17: warning: passing arguments to 'insert_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 532 | insert_str(tmp_val, "~", "s"); | ^ desc.c:535:15: warning: passing arguments to 'insert_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 535 | insert_str(tmp_val, "~", CNIL); | ^ desc.c:327:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 327 | void objdes(out_val, i_ptr, pref) | ^ In file included from desc.c:17: ./externs.h:808:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 808 | void objdes(); | ^ desc.c:659:21: warning: multiple unsequenced modifications to 'indexx' [-Wunsequenced] 659 | indexx = (indexx <<= 6) + | ~ ^ desc.c:688:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 688 | void invcopy(to, from_index) | ^ In file included from desc.c:17: ./externs.h:809:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 809 | void invcopy(); | ^ desc.c:728:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 728 | msg_print(out_val); | ^ desc.c:718:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 718 | void desc_charges(item_val) | ^ In file included from desc.c:17: ./externs.h:810:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 810 | void desc_charges(); | ^ desc.c:746:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 746 | msg_print(out_val); | ^ desc.c:734:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 734 | void desc_remain(item_val) | ^ In file included from desc.c:17: ./externs.h:811:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 811 | void desc_remain(); | ^ 59 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c generate.c In file included from generate.c:12: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from generate.c:12: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ generate.c:95:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | if (randint (2) == 1) | ^ generate.c:77:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | static void correct_dir(rdir, cdir, y1, x1, y2, x2) | ^ generate.c:109:16: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | tmp = randint(4); | ^ generate.c:104:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 104 | static void rand_dir(rdir, cdir) | ^ generate.c:142:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 142 | static void fill_cave(fval) | ^ generate.c:221:38: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | y = (cur_height / 2) + 11 - randint(23); | ^ generate.c:222:38: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 222 | x = (cur_width / 2) + 16 - randint(33); | ^ generate.c:224:16: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 224 | dir = randint(8); /* Number 1-4, 6-9 */ | ^ generate.c:235:20: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 235 | ty = y + randint(t1) - t2; | ^ generate.c:236:20: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 236 | tx = x + randint(t1) - t2; | ^ generate.c:237:17: warning: passing arguments to 'in_bounds' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 237 | if (in_bounds(ty, tx)) | ^ generate.c:243:16: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 243 | if (randint(treas_chance) == 1) | ^ generate.c:244:17: warning: passing arguments to 'place_gold' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 244 | place_gold(ty, tx); | ^ generate.c:249:15: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 249 | while (mmove(dir, &y, &x)); | ^ generate.c:212:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 212 | static void place_streamer(fval, treas_chance) | ^ generate.c:262:10: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 262 | invcopy(&t_list[cur_pos], OBJ_OPEN_DOOR); | ^ generate.c:253:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 253 | static void place_open_door(y, x) | ^ generate.c:276:10: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 276 | invcopy(&t_list[cur_pos], OBJ_OPEN_DOOR); | ^ generate.c:267:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 267 | static void place_broken_door(y, x) | ^ generate.c:291:10: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 291 | invcopy(&t_list[cur_pos], OBJ_CLOSED_DOOR); | ^ generate.c:282:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 282 | static void place_closed_door(y, x) | ^ generate.c:305:10: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 305 | invcopy(&t_list[cur_pos], OBJ_CLOSED_DOOR); | ^ generate.c:307:31: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 307 | t_list[cur_pos].p1 = randint(10) + 10; | ^ generate.c:296:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 296 | static void place_locked_door(y, x) | ^ generate.c:320:10: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 320 | invcopy(&t_list[cur_pos], OBJ_CLOSED_DOOR); | ^ generate.c:322:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 322 | t_list[cur_pos].p1 = -randint(10) - 10; | ^ generate.c:311:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 311 | static void place_stuck_door(y, x) | ^ generate.c:335:10: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 335 | invcopy(&t_list[cur_pos], OBJ_SECRET_DOOR); | ^ generate.c:326:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 326 | static void place_secret_door(y, x) | ^ generate.c:345:16: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 345 | tmp = randint(3); | ^ generate.c:348:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 348 | if (randint(4) == 1) | ^ generate.c:355:20: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 355 | tmp = randint(12); | ^ generate.c:340:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 340 | static void place_door(y, x) | ^ generate.c:377:25: warning: passing arguments to 'delete_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 377 | (void) delete_object(y, x); | ^ generate.c:380:10: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 380 | invcopy(&t_list[cur_pos], OBJ_UP_STAIR); | ^ generate.c:369:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 369 | static void place_up_stairs(y, x) | ^ generate.c:393:25: warning: passing arguments to 'delete_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 393 | (void) delete_object(y, x); | ^ generate.c:396:10: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 396 | invcopy(&t_list[cur_pos], OBJ_DOWN_STAIR); | ^ generate.c:385:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 385 | static void place_down_stairs(y, x) | ^ generate.c:419:20: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 419 | y1 = randint(cur_height - 14); | ^ generate.c:420:20: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 420 | x1 = randint(cur_width - 14); | ^ generate.c:430:23: warning: passing arguments to 'next_to_walls' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 430 | && (next_to_walls(y1, x1) >= walls)) | ^ generate.c:401:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 401 | static void place_stairs(typ, num, walls) | ^ generate.c:469:29: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 469 | y1 = y - yd - 1 + randint(2*yd+1); | ^ generate.c:470:29: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 470 | x1 = x - xd - 1 + randint(2*xd+1); | ^ generate.c:475:34: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 475 | place_trap(y1, x1, randint(MAX_TRAP)-1); | ^ generate.c:475:18: warning: passing arguments to 'place_trap' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 475 | place_trap(y1, x1, randint(MAX_TRAP)-1); | ^ generate.c:456:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 456 | static void vault_trap(y, x, yd, xd, num) | ^ generate.c:496:28: warning: passing arguments to 'summon_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 496 | (void) summon_monster(&y1, &x1, TRUE); | ^ generate.c:486:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 486 | static void vault_monster(y, x, num) | ^ generate.c:510:27: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 510 | if (dun_level <= randint(25)) | ^ generate.c:515:28: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 515 | y_height = yval - randint(4); | ^ generate.c:516:28: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 516 | y_depth = yval + randint(3); | ^ generate.c:517:28: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 517 | x_left = xval - randint(11); | ^ generate.c:518:28: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 518 | x_right = xval + randint(11); | ^ generate.c:502:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 502 | static void build_room(yval, xval) | ^ generate.c:569:27: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 569 | if (dun_level <= randint(25)) | ^ generate.c:573:22: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 573 | limit = 1 + randint(2); | ^ generate.c:576:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 576 | y_height = yval - randint(4); | ^ generate.c:577:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 577 | y_depth = yval + randint(3); | ^ generate.c:578:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 578 | x_left = xval - randint(11); | ^ generate.c:579:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 579 | x_right = xval + randint(11); | ^ generate.c:560:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 560 | static void build_type1(yval, xval) | ^ generate.c:645:27: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 645 | if (dun_level <= randint(25)) | ^ generate.c:707:17: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 707 | switch(randint(5)) | ^ generate.c:710:20: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 710 | tmp = randint(4); | ^ generate.c:722:20: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 722 | tmp = randint(4); | ^ generate.c:739:20: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 739 | tmp = randint(4); /* Place a door */ | ^ generate.c:746:20: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 746 | tmp = randint(10); | ^ generate.c:748:14: warning: passing arguments to 'place_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 748 | place_object(yval, xval, FALSE); | ^ generate.c:755:42: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 755 | vault_monster(yval, xval, 2+randint(3)); | ^ generate.c:757:46: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 757 | vault_trap(yval, xval, 4, 10, 2+randint(3)); | ^ generate.c:761:20: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 761 | tmp = randint(4); | ^ generate.c:779:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 779 | if (randint(2) == 1) | ^ generate.c:781:17: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 781 | tmp = randint(2); | ^ generate.c:802:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 802 | if (randint(3) == 1) /* Inner rooms */ | ^ generate.c:815:37: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 815 | place_secret_door(yval-3+(randint(2)<<1), xval-3); | ^ generate.c:816:37: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 816 | place_secret_door(yval-3+(randint(2)<<1), xval+3); | ^ generate.c:817:15: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 817 | if (randint(3) == 1) place_object(yval, xval-2, FALSE); | ^ generate.c:817:37: warning: passing arguments to 'place_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 817 | if (randint(3) == 1) place_object(yval, xval-2, FALSE); | ^ generate.c:818:15: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 818 | if (randint(3) == 1) place_object(yval, xval+2, FALSE); | ^ generate.c:818:37: warning: passing arguments to 'place_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 818 | if (randint(3) == 1) place_object(yval, xval+2, FALSE); | ^ generate.c:819:39: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 819 | vault_monster(yval, xval-2, randint(2)); | ^ generate.c:820:39: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 820 | vault_monster(yval, xval+2, randint(2)); | ^ generate.c:825:20: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 825 | tmp = randint(4); | ^ generate.c:840:42: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 840 | vault_monster(yval, xval-5, randint(3)); | ^ generate.c:841:42: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 841 | vault_monster(yval, xval+5, randint(3)); | ^ generate.c:843:45: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 843 | vault_trap(yval, xval-3, 2, 8, randint(3)); | ^ generate.c:844:45: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 844 | vault_trap(yval, xval+3, 2, 8, randint(3)); | ^ generate.c:847:15: warning: passing arguments to 'random_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 847 | random_object(yval, xval, 1); | ^ generate.c:861:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 861 | if (randint(2) == 1) | ^ generate.c:863:15: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 863 | i = randint(10); | ^ generate.c:871:15: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 871 | i = randint(3); | ^ generate.c:879:42: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 879 | random_object(yval, xval, 2+randint(2)); | ^ generate.c:879:20: warning: passing arguments to 'random_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 879 | random_object(yval, xval, 2+randint(2)); | ^ generate.c:881:44: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 881 | vault_monster(yval+2, xval-4, randint(2)); | ^ generate.c:882:44: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 882 | vault_monster(yval+2, xval+4, randint(2)); | ^ generate.c:883:44: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 883 | vault_monster(yval-2, xval-4, randint(2)); | ^ generate.c:884:44: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 884 | vault_monster(yval-2, xval+4, randint(2)); | ^ generate.c:637:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 637 | static void build_type2(yval, xval) | ^ generate.c:901:27: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 901 | if (dun_level <= randint(25)) | ^ generate.c:905:20: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 905 | tmp = 2 + randint(2); | ^ generate.c:935:20: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 935 | tmp = 2 + randint(9); | ^ generate.c:978:17: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 978 | switch(randint(4)) | ^ generate.c:1001:20: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1001 | tmp = randint(4); /* Place a door */ | ^ generate.c:1008:19: warning: passing arguments to 'place_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1008 | place_object(yval, xval, FALSE); | ^ generate.c:1010:42: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1010 | vault_monster(yval, xval, 2+randint(2)); | ^ generate.c:1012:45: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1012 | vault_trap(yval, xval, 4, 4, 1+randint(3)); | ^ generate.c:1016:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1016 | if (randint(3) == 1) | ^ generate.c:1026:15: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1026 | if (randint(3) == 1) | ^ generate.c:1034:23: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1034 | else if (randint(3) == 1) | ^ generate.c:1042:23: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1042 | else if (randint(3) == 1) | ^ generate.c:892:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 892 | static void build_type3(yval, xval) | ^ generate.c:1083:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1083 | if (randint(100) > DUN_TUN_CHG) | ^ generate.c:1085:15: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1085 | if (randint(DUN_TUN_RND) == 1) | ^ generate.c:1092:24: warning: passing arguments to 'in_bounds' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1092 | while (!in_bounds(tmp_row, tmp_col)) | ^ generate.c:1094:15: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1094 | if (randint(DUN_TUN_RND) == 1) | ^ generate.c:1129:21: warning: passing arguments to 'in_bounds' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1129 | if (in_bounds(i, j)) | ^ generate.c:1152:15: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1152 | if (randint(100) > DUN_TUN_CON) | ^ generate.c:1184:15: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1184 | if (randint(100) < DUN_TUN_PEN) | ^ generate.c:1053:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1053 | static void build_tunnel(row1, col1, row2, col2) | ^ generate.c:1201:19: warning: passing arguments to 'next_to_corr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1201 | if (next_to_corr(y, x) > 2) | ^ generate.c:1196:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1196 | static int next_to(y, x) | ^ generate.c:1219:50: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1219 | if ((cave[y][x].fval == CORR_FLOOR) && (randint(100) > DUN_TUN_JCT) | ^ generate.c:1216:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1216 | static void try_door(y, x) | ^ generate.c:1234:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1234 | i = randint(cur_height - 2); | ^ generate.c:1235:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1235 | j = randint(cur_width - 2); | ^ generate.c:1226:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1226 | static void new_spot(y, x) | ^ generate.c:1264:14: warning: passing arguments to 'randnor' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1264 | k = randnor(DUN_ROO_MEA, 2); | ^ generate.c:1266:21: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1266 | room_map[randint(row_rooms)-1][randint(col_rooms)-1] = TRUE; | ^ generate.c:1266:43: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1266 | room_map[randint(row_rooms)-1][randint(col_rooms)-1] = TRUE; | ^ generate.c:1274:27: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1274 | if (dun_level > randint(DUN_UNUSUAL)) | ^ generate.c:1276:21: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1276 | tmp = randint(3); | ^ generate.c:1290:22: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1290 | pick1 = randint(k) - 1; | ^ generate.c:1291:22: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1291 | pick2 = randint(k) - 1; | ^ generate.c:1336:26: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1336 | place_stairs(2, randint(2)+2, 3); | ^ generate.c:1337:26: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1337 | place_stairs(1, randint(2), 3); | ^ generate.c:1340:25: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1340 | alloc_monster((randint(8)+MIN_MALLOC_LEVEL+alloc_level), 0, TRUE); | ^ generate.c:1340:16: warning: passing arguments to 'alloc_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1340 | alloc_monster((randint(8)+MIN_MALLOC_LEVEL+alloc_level), 0, TRUE); | ^ generate.c:1341:36: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1341 | alloc_object(set_corr, 3, randint(alloc_level)); | ^ generate.c:1341:15: warning: passing arguments to 'alloc_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1341 | alloc_object(set_corr, 3, randint(alloc_level)); | ^ generate.c:1342:36: warning: passing arguments to 'randnor' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1342 | alloc_object(set_room, 5, randnor(TREAS_ROOM_ALLOC, 3)); | ^ generate.c:1342:15: warning: passing arguments to 'alloc_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1342 | alloc_object(set_room, 5, randnor(TREAS_ROOM_ALLOC, 3)); | ^ generate.c:1343:37: warning: passing arguments to 'randnor' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1343 | alloc_object(set_floor, 5, randnor(TREAS_ANY_ALLOC, 3)); | ^ generate.c:1343:15: warning: passing arguments to 'alloc_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1343 | alloc_object(set_floor, 5, randnor(TREAS_ANY_ALLOC, 3)); | ^ generate.c:1344:37: warning: passing arguments to 'randnor' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1344 | alloc_object(set_floor, 4, randnor(TREAS_GOLD_ALLOC, 3)); | ^ generate.c:1344:15: warning: passing arguments to 'alloc_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1344 | alloc_object(set_floor, 4, randnor(TREAS_GOLD_ALLOC, 3)); | ^ generate.c:1345:37: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1345 | alloc_object(set_floor, 1, randint(alloc_level)); | ^ generate.c:1345:15: warning: passing arguments to 'alloc_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1345 | alloc_object(set_floor, 1, randint(alloc_level)); | ^ generate.c:1362:28: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1362 | y_height = yval - randint(3); | ^ generate.c:1363:28: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1363 | y_depth = yval + randint(4); | ^ generate.c:1364:28: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1364 | x_left = xval - randint(6); | ^ generate.c:1365:28: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1365 | x_right = xval + randint(6); | ^ generate.c:1369:16: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1369 | tmp = randint(4); | ^ generate.c:1372:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1372 | i = randint(y_depth-y_height) + y_height - 1; | ^ generate.c:1378:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1378 | j = randint(x_right-x_left) + x_left - 1; | ^ generate.c:1386:10: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1386 | invcopy(&t_list[cur_pos], OBJ_STORE_DOOR + store_num); | ^ generate.c:1351:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1351 | static void build_store(store_num, y, x) | ^ generate.c:1396:12: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1396 | invcopy(&t_list[i], OBJ_NOTHING); | ^ generate.c:1419:11: warning: passing arguments to 'set_seed' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1419 | set_seed(town_seed); | ^ generate.c:1426:13: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1426 | k = randint(l) - 1; | ^ generate.c:1454:20: warning: passing arguments to 'alloc_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1454 | alloc_monster(MIN_MALLOC_TN, 3, TRUE); | ^ generate.c:1470:20: warning: passing arguments to 'alloc_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1470 | alloc_monster(MIN_MALLOC_TD, 3, TRUE); | ^ 165 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c sets.c sets.c:13:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 13 | int set_room(element) | ^ sets.c:21:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | int set_corr(element) | ^ sets.c:29:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | int set_floor(element) | ^ sets.c:38:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | int set_corrodes(item) | ^ sets.c:51:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | int set_flammable(item) | ^ sets.c:71:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | int set_frost_destroy(item) | ^ sets.c:81:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | int set_acid_affect(item) | ^ sets.c:100:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | int set_lightning_destroy(item) | ^ sets.c:115:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | int set_null(item) | ^ sets.c:125:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | int set_acid_destroy(item) | ^ sets.c:146:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | int set_fire_destroy(item) | ^ sets.c:165:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 165 | int set_large(item) /* Items too large to fit in chests -DJG- */ | ^ sets.c:182:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | int general_store(element) | ^ sets.c:195:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 195 | int armory(element) | ^ sets.c:208:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 208 | int weaponsmith(element) | ^ sets.c:221:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | int temple(element) | ^ sets.c:234:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 234 | int alchemist(element) | ^ sets.c:246:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 246 | int magic_shop(element) | ^ 18 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c dungeon.c In file included from dungeon.c:18: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from dungeon.c:18: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ dungeon.c:112:12: warning: passing arguments to 'creatures' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | creatures(FALSE); | ^ dungeon.c:133:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 133 | msg_print("The gates to Moria are now closed."); | ^ dungeon.c:144:14: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 144 | disturb (0, 0); | ^ dungeon.c:146:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | msg_print("The gates to Moria are closing."); | ^ dungeon.c:147:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 147 | msg_print("Please finish up or save your game."); | ^ dungeon.c:142:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] 142 | else | ^ dungeon.c:156:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 156 | if (randint(MAX_MALLOC_CHANCE) == 1) | ^ dungeon.c:157:15: warning: passing arguments to 'alloc_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 157 | alloc_monster(1, MAX_SIGHT, FALSE); | ^ dungeon.c:167:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 167 | msg_print("Your light has gone out!"); | ^ dungeon.c:168:11: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 168 | disturb (0, 1); | ^ dungeon.c:170:12: warning: passing arguments to 'creatures' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | creatures(FALSE); | ^ dungeon.c:172:43: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 172 | else if ((i_ptr->p1 < 40) && (randint(5) == 1) && | ^ dungeon.c:175:11: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | disturb (0, 0); | ^ dungeon.c:176:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 176 | msg_print("Your light is growing faint."); | ^ dungeon.c:182:14: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | disturb (0, 1); | ^ dungeon.c:184:15: warning: passing arguments to 'creatures' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 184 | creatures(FALSE); | ^ dungeon.c:190:12: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 190 | disturb (0, 1); | ^ dungeon.c:192:13: warning: passing arguments to 'creatures' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 192 | creatures(FALSE); | ^ dungeon.c:202:16: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 202 | disturb (0, 0); | ^ dungeon.c:207:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 207 | msg_print("You feel like a HERO!"); | ^ dungeon.c:219:16: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 219 | disturb (0, 0); | ^ dungeon.c:229:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 229 | msg_print("The heroism wears off."); | ^ dungeon.c:239:16: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 239 | disturb (0, 0); | ^ dungeon.c:244:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 244 | msg_print("You feel like a SUPER HERO!"); | ^ dungeon.c:256:16: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 256 | disturb (0, 0); | ^ dungeon.c:266:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 266 | msg_print("The super heroism wears off."); | ^ dungeon.c:285:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 285 | msg_print("You are getting weak from hunger."); | ^ dungeon.c:286:13: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 286 | disturb (0, 0); | ^ dungeon.c:289:57: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 289 | if ((f_ptr->food < PLAYER_FOOD_FAINT) && (randint(8) == 1)) | ^ dungeon.c:291:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 291 | f_ptr->paralysis += randint(5); | ^ dungeon.c:292:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 292 | msg_print("You faint from the lack of food."); | ^ dungeon.c:293:13: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 293 | disturb (1, 0); | ^ dungeon.c:299:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 299 | msg_print("You are getting hungry."); | ^ dungeon.c:300:16: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 300 | disturb (0, 0); | ^ dungeon.c:311:13: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 311 | take_hit (-f_ptr->food/16, "starvation"); /* -CJS- */ | ^ dungeon.c:312:11: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 312 | disturb(1, 0); | ^ dungeon.c:319:9: warning: passing arguments to 'regenhp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 319 | regenhp(regen_amount); | ^ dungeon.c:321:11: warning: passing arguments to 'regenmana' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 321 | regenmana(regen_amount); | ^ dungeon.c:330:16: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 330 | disturb (0, 1); | ^ dungeon.c:332:18: warning: passing arguments to 'creatures' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 332 | creatures (FALSE); | ^ dungeon.c:345:16: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 345 | disturb (0, 1); | ^ dungeon.c:346:17: warning: passing arguments to 'creatures' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 346 | creatures(FALSE); | ^ dungeon.c:347:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 347 | msg_print("The veil of darkness lifts."); | ^ dungeon.c:367:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 367 | msg_print("You feel less confused now."); | ^ dungeon.c:396:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 396 | msg_print("You feel bolder now."); | ^ dungeon.c:397:16: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 397 | disturb (0, 0); | ^ dungeon.c:417:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 417 | msg_print("You feel better."); | ^ dungeon.c:418:16: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 418 | disturb (0, 0); | ^ dungeon.c:439:17: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 439 | take_hit (i, "poison"); | ^ dungeon.c:440:16: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 440 | disturb (1, 0); | ^ dungeon.c:449:20: warning: passing arguments to 'change_speed' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 449 | change_speed(-1); | ^ dungeon.c:450:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 450 | msg_print("You feel yourself moving faster."); | ^ dungeon.c:451:16: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 451 | disturb (0, 0); | ^ dungeon.c:461:20: warning: passing arguments to 'change_speed' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 461 | change_speed(1); | ^ dungeon.c:462:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 462 | msg_print("You feel yourself slow down."); | ^ dungeon.c:463:16: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 463 | disturb (0, 0); | ^ dungeon.c:472:20: warning: passing arguments to 'change_speed' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 472 | change_speed(1); | ^ dungeon.c:473:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 473 | msg_print("You feel yourself moving slower."); | ^ dungeon.c:474:16: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 474 | disturb (0, 0); | ^ dungeon.c:484:20: warning: passing arguments to 'change_speed' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 484 | change_speed(-1); | ^ dungeon.c:485:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 485 | msg_print("You feel yourself speed up."); | ^ dungeon.c:486:16: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 486 | disturb (0, 0); | ^ dungeon.c:529:12: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 529 | disturb (0, 0); | ^ dungeon.c:546:12: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 546 | disturb (1, 0); | ^ dungeon.c:553:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 553 | msg_print ("You no longer feel safe from evil."); | ^ dungeon.c:561:16: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 561 | disturb (0, 0); | ^ dungeon.c:565:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 565 | msg_print("Your skin turns into steel!"); | ^ dungeon.c:575:16: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 575 | disturb (0, 0); | ^ dungeon.c:579:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 579 | msg_print("Your skin returns to normal."); | ^ dungeon.c:588:16: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 588 | disturb (0, 0); | ^ dungeon.c:593:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 593 | msg_print("You feel righteous!"); | ^ dungeon.c:604:16: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 604 | disturb (0, 0); | ^ dungeon.c:609:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 609 | msg_print("The prayer has expired."); | ^ dungeon.c:618:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 618 | msg_print ("You no longer feel safe from flame."); | ^ dungeon.c:625:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 625 | msg_print ("You no longer feel safe from cold."); | ^ dungeon.c:643:18: warning: passing arguments to 'creatures' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 643 | creatures (FALSE); | ^ dungeon.c:656:18: warning: passing arguments to 'creatures' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 656 | creatures (FALSE); | ^ dungeon.c:675:18: warning: passing arguments to 'creatures' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 675 | creatures (FALSE); | ^ dungeon.c:687:18: warning: passing arguments to 'creatures' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 687 | creatures (FALSE); | ^ dungeon.c:700:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 700 | msg_print("You feel yourself yanked upwards!"); | ^ dungeon.c:705:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 705 | msg_print("You feel yourself yanked downwards!"); | ^ dungeon.c:708:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] 708 | else | ^ dungeon.c:712:42: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 712 | if ((py.flags.teleport) && (randint(100) == 1)) | ^ dungeon.c:714:12: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 714 | disturb (0, 0); | ^ dungeon.c:715:12: warning: passing arguments to 'teleport' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 715 | teleport(40); | ^ dungeon.c:791:16: warning: passing arguments to 'prt_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 791 | prt_stat(i); | ^ dungeon.c:830:15: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 830 | && (randint((int)(10 + 750 / (5 + py.misc.lev))) == 1)) | ^ dungeon.c:841:52: warning: passing arguments to 'enchanted' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 841 | if ((i_ptr->tval != TV_NOTHING) && enchanted(i_ptr) && | ^ dungeon.c:842:13: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 842 | (randint(i < 22 ? 50 : 10) == 1)) | ^ dungeon.c:848:18: warning: passing arguments to 'describe_use' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 848 | describe_use(i)); | ^ dungeon.c:849:12: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 849 | disturb(0, 0); | ^ dungeon.c:850:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 850 | msg_print(tmp_str); | ^ dungeon.c:851:17: warning: passing arguments to 'add_inscribe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 851 | add_inscribe(i_ptr, ID_MAGIK); | ^ dungeon.c:889:17: warning: passing arguments to 'inven_command' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 889 | inven_command (doing_inven); | ^ dungeon.c:893:26: warning: passing arguments to 'move_cursor_relative' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 893 | move_cursor_relative (char_row, char_col); | ^ dungeon.c:918:9: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 918 | prt("Repeat count:", 0, 0); | ^ dungeon.c:928:11: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 928 | prt (tmp, 0, 14); | ^ dungeon.c:938:15: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 938 | prt (tmp, 0, 14); | ^ dungeon.c:953:14: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 953 | prt (tmp, 0, 14); | ^ dungeon.c:958:14: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 958 | prt ("Command:", 0, 20); | ^ dungeon.c:971:17: warning: passing arguments to 'get_com' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 971 | if (get_com("Control-", &command)) | ^ dungeon.c:979:20: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 979 | msg_print("Type ^ for a control char"); | ^ dungeon.c:987:30: warning: passing arguments to 'move_cursor_relative' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 987 | move_cursor_relative (char_row, char_col); | ^ dungeon.c:990:32: warning: passing arguments to 'original_commands' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 990 | command = original_commands (command); | ^ dungeon.c:993:29: warning: passing arguments to 'valid_countcommand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 993 | if (!valid_countcommand(command)) | ^ dungeon.c:996:20: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 996 | msg_print ("Invalid command with a count."); | ^ dungeon.c:1007:15: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1007 | erase_line(MSG_LINE, 0); | ^ dungeon.c:1008:25: warning: passing arguments to 'move_cursor_relative' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1008 | move_cursor_relative(char_row, char_col); | ^ dungeon.c:1011:16: warning: passing arguments to 'do_command' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1011 | do_command (command); | ^ dungeon.c:1031:25: warning: passing arguments to 'move_cursor_relative' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1031 | move_cursor_relative (char_row, char_col); | ^ dungeon.c:1036:35: warning: passing arguments to 'teleport' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1036 | if (teleport_flag) teleport(100); | ^ dungeon.c:1038:38: warning: passing arguments to 'creatures' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1038 | if (!new_level_flag) creatures(TRUE); | ^ dungeon.c:1067:18: warning: passing arguments to 'get_dir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1067 | if (get_dir(CNIL, &dir_val)) | ^ dungeon.c:1139:18: warning: passing arguments to 'get_dir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1139 | if (get_dir(CNIL, &dir_val)) | ^ dungeon.c:1045:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1045 | static char original_commands(com_val) | ^ dungeon.c:41:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 41 | static char original_commands(); | ^ dungeon.c:1249:18: warning: passing arguments to 'get_dir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1249 | if (get_dir(CNIL, &dir_val)) | ^ dungeon.c:1275:20: warning: passing arguments to 'get_check' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1275 | if (get_check("Do you really want to quit?")) | ^ dungeon.c:1303:11: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1303 | prt(old_msg[j], i, 0); | ^ dungeon.c:1309:15: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1309 | erase_line (x, 0); | ^ dungeon.c:1310:14: warning: passing arguments to 'pause_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1310 | pause_line(x); | ^ dungeon.c:1316:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1316 | put_buffer(">", 0, 0); | ^ dungeon.c:1317:7: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1317 | prt(old_msg[j], 0, 1); | ^ dungeon.c:1325:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1325 | msg_print("Wizard mode off."); | ^ dungeon.c:1328:11: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1328 | msg_print("Wizard mode on."); | ^ dungeon.c:1335:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1335 | msg_print("You are a Total Winner, your character must be retired."); | ^ dungeon.c:1337:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1337 | msg_print("Use 'Q' to when you are ready to quit."); | ^ dungeon.c:1339:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1339 | msg_print ("Use -K when you are ready to quit."); | ^ dungeon.c:1344:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1344 | msg_print ("Saving game..."); | ^ dungeon.c:1380:16: warning: passing arguments to 'move_char' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1380 | move_char(1, do_pickup); | ^ dungeon.c:1383:16: warning: passing arguments to 'move_char' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1383 | move_char(2, do_pickup); | ^ dungeon.c:1386:16: warning: passing arguments to 'move_char' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1386 | move_char(3, do_pickup); | ^ dungeon.c:1389:16: warning: passing arguments to 'move_char' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1389 | move_char(4, do_pickup); | ^ dungeon.c:1392:16: warning: passing arguments to 'move_char' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1392 | move_char(6, do_pickup); | ^ dungeon.c:1395:16: warning: passing arguments to 'move_char' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1395 | move_char(7, do_pickup); | ^ dungeon.c:1398:16: warning: passing arguments to 'move_char' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1398 | move_char(8, do_pickup); | ^ dungeon.c:1401:16: warning: passing arguments to 'move_char' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1401 | move_char(9, do_pickup); | ^ dungeon.c:1404:16: warning: passing arguments to 'find_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1404 | find_init(1); | ^ dungeon.c:1407:16: warning: passing arguments to 'find_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1407 | find_init(2); | ^ dungeon.c:1410:16: warning: passing arguments to 'find_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1410 | find_init(3); | ^ dungeon.c:1413:16: warning: passing arguments to 'find_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1413 | find_init(4); | ^ dungeon.c:1416:16: warning: passing arguments to 'find_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1416 | find_init(6); | ^ dungeon.c:1419:16: warning: passing arguments to 'find_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1419 | find_init(7); | ^ dungeon.c:1422:16: warning: passing arguments to 'find_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1422 | find_init(8); | ^ dungeon.c:1425:16: warning: passing arguments to 'find_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1425 | find_init(9); | ^ dungeon.c:1432:17: warning: passing arguments to 'move_char' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1432 | move_char (5, do_pickup); | ^ dungeon.c:1447:10: warning: passing arguments to 'helpfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1447 | helpfile(MORIA_HELP); | ^ dungeon.c:1449:10: warning: passing arguments to 'helpfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1449 | helpfile(MORIA_ORIG_HELP); | ^ dungeon.c:1479:21: warning: passing arguments to 'display_scores' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1479 | display_scores(i); | ^ dungeon.c:1485:11: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1485 | msg_print("You can't see your map."); | ^ dungeon.c:1492:17: warning: passing arguments to 'get_panel' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1492 | if (get_panel(y, x, TRUE)) | ^ dungeon.c:1509:20: warning: passing arguments to 'get_dir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1509 | if (!get_dir(out_val, &dir_val)) | ^ dungeon.c:1521:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1521 | msg_print("You've gone past the end of your map."); | ^ dungeon.c:1526:16: warning: passing arguments to 'get_panel' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1526 | if (get_panel(y, x, TRUE)) | ^ dungeon.c:1534:17: warning: passing arguments to 'get_panel' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1534 | if (get_panel(char_row, char_col, FALSE)) | ^ dungeon.c:1550:13: warning: passing arguments to 'tunnel' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1550 | tunnel(1); | ^ dungeon.c:1554:13: warning: passing arguments to 'tunnel' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1554 | tunnel(2); | ^ dungeon.c:1557:13: warning: passing arguments to 'tunnel' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1557 | tunnel(3); | ^ dungeon.c:1560:13: warning: passing arguments to 'tunnel' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1560 | tunnel(4); | ^ dungeon.c:1563:13: warning: passing arguments to 'tunnel' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1563 | tunnel(6); | ^ dungeon.c:1566:13: warning: passing arguments to 'tunnel' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1566 | tunnel(7); | ^ dungeon.c:1569:13: warning: passing arguments to 'tunnel' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1569 | tunnel(8); | ^ dungeon.c:1572:13: warning: passing arguments to 'tunnel' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1572 | tunnel(9); | ^ dungeon.c:1589:20: warning: passing arguments to 'inven_command' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1589 | inven_command('d'); | ^ dungeon.c:1592:20: warning: passing arguments to 'inven_command' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1592 | inven_command('e'); | ^ dungeon.c:1598:20: warning: passing arguments to 'inven_command' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1598 | inven_command('i'); | ^ dungeon.c:1623:13: warning: passing arguments to 'search' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1623 | search(char_row, char_col, py.misc.srh); | ^ dungeon.c:1626:20: warning: passing arguments to 'inven_command' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1626 | inven_command('t'); | ^ dungeon.c:1632:15: warning: passing arguments to 'helpfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1632 | helpfile(MORIA_VER); | ^ dungeon.c:1636:20: warning: passing arguments to 'inven_command' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1636 | inven_command('w'); | ^ dungeon.c:1639:20: warning: passing arguments to 'inven_command' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1639 | inven_command('x'); | ^ dungeon.c:1653:23: warning: passing arguments to 'res_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1653 | (void) res_stat(A_STR); | ^ dungeon.c:1654:23: warning: passing arguments to 'res_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1654 | (void) res_stat(A_INT); | ^ dungeon.c:1655:23: warning: passing arguments to 'res_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1655 | (void) res_stat(A_WIS); | ^ dungeon.c:1656:23: warning: passing arguments to 'res_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1656 | (void) res_stat(A_CON); | ^ dungeon.c:1657:23: warning: passing arguments to 'res_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1657 | (void) res_stat(A_DEX); | ^ dungeon.c:1658:23: warning: passing arguments to 'res_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1658 | (void) res_stat(A_CHR); | ^ dungeon.c:1667:18: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1667 | erase_line(MSG_LINE, 0); | ^ dungeon.c:1680:21: warning: passing arguments to 'random_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1680 | random_object(char_row, char_col, i); | ^ dungeon.c:1694:8: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1694 | prt("Go to which level (0-99) ? ", 0, 0); | ^ dungeon.c:1696:19: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1696 | if (get_string(tmp_str, 0, 27, 10)) | ^ dungeon.c:1707:13: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1707 | erase_line(MSG_LINE, 0); | ^ dungeon.c:1714:11: warning: passing arguments to 'helpfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1714 | helpfile(MORIA_WIZ_HELP); | ^ dungeon.c:1716:11: warning: passing arguments to 'helpfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1716 | helpfile(MORIA_OWIZ_HELP); | ^ dungeon.c:1728:16: warning: passing arguments to 'teleport' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1728 | teleport(100); | ^ dungeon.c:1745:29: warning: passing arguments to 'summon_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1745 | (void) summon_monster(&y, &x, TRUE); | ^ dungeon.c:1746:17: warning: passing arguments to 'creatures' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1746 | creatures(FALSE); | ^ dungeon.c:1753:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1753 | prt("Type '?' or '\\' for help.", 0, 0); | ^ dungeon.c:1755:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1755 | prt("Type '?' or ^H for help.", 0, 0); | ^ dungeon.c:1760:7: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1760 | prt("Type '?' for help.", 0, 0); | ^ dungeon.c:1236:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1236 | static void do_command(com_val) | ^ dungeon.c:42:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 42 | static void do_command(); | ^ dungeon.c:1768:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1768 | static int valid_countcommand(c) | ^ dungeon.c:43:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 43 | static int valid_countcommand(); | ^ dungeon.c:1863:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1863 | static void regenhp(percent) | ^ dungeon.c:44:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 44 | static void regenhp(); | ^ dungeon.c:1898:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1898 | static void regenmana(percent) | ^ dungeon.c:45:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 45 | static void regenmana(); | ^ dungeon.c:1948:15: warning: passing arguments to 'known2_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1948 | if (known2_p(t_ptr)) | ^ dungeon.c:1934:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1934 | static int enchanted (t_ptr) | ^ dungeon.c:46:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 46 | static int enchanted(); | ^ dungeon.c:1972:18: warning: passing arguments to 'find_range' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1972 | if (!find_range(TV_MAGIC_BOOK, TV_PRAYER_BOOK, &i, &k)) | ^ dungeon.c:1973:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1973 | msg_print("You are not carrying any books."); | ^ dungeon.c:1975:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1975 | msg_print("You can't see to read your spell book!"); | ^ dungeon.c:1977:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1977 | msg_print("You have no light to read by."); | ^ dungeon.c:1979:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1979 | msg_print("You are too confused."); | ^ dungeon.c:1980:20: warning: passing arguments to 'get_item' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1980 | else if (get_item(&item_val, "Which Book?", i, k, CNIL, CNIL)) | ^ dungeon.c:1998:11: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1998 | msg_print("You do not understand the language."); | ^ dungeon.c:2005:19: warning: passing arguments to 'bit_pos' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2005 | k = bit_pos(&j); | ^ dungeon.c:2014:16: warning: passing arguments to 'print_spells' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2014 | print_spells(spell_index, i, TRUE, -1); | ^ dungeon.c:2015:14: warning: passing arguments to 'pause_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2015 | pause_line(0); | ^ dungeon.c:2034:11: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2034 | msg_print("You enter a maze of up staircases."); | ^ dungeon.c:2035:11: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2035 | msg_print("You pass through a one-way door."); | ^ dungeon.c:2044:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2044 | msg_print("I see no up staircase here."); | ^ dungeon.c:2062:11: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2062 | msg_print("You enter a maze of down staircases."); | ^ dungeon.c:2063:11: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2063 | msg_print("You pass through a one-way door."); | ^ dungeon.c:2072:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2072 | msg_print("I see no down staircase here."); | ^ dungeon.c:2089:14: warning: passing arguments to 'get_dir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2089 | if (get_dir(CNIL, &dir)) | ^ dungeon.c:2091:19: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2091 | (void) mmove(dir, &y, &x); | ^ dungeon.c:2099:17: warning: passing arguments to 'find_range' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2099 | if (find_range(TV_SPIKE, TV_NEVER, &i, &j)) | ^ dungeon.c:2102:22: warning: passing arguments to 'count_msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2102 | count_msg_print("You jam the door with a spike."); | ^ dungeon.c:2115:22: warning: passing arguments to 'inven_destroy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2115 | inven_destroy(i); | ^ dungeon.c:2118:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2118 | msg_print("But you have no spikes."); | ^ dungeon.c:2125:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2125 | msg_print(tmp_str); | ^ dungeon.c:2128:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2128 | msg_print("The door must be closed first."); | ^ dungeon.c:2130:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2130 | msg_print("That isn't a door!"); | ^ dungeon.c:2133:11: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2133 | msg_print("That isn't a door!"); | ^ dungeon.c:2148:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2148 | msg_print("But you are not using a lamp."); | ^ dungeon.c:2149:23: warning: passing arguments to 'find_range' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2149 | else if (!find_range(TV_FLASK, TV_NEVER, &i, &j)) | ^ dungeon.c:2150:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2150 | msg_print("You have no oil."); | ^ dungeon.c:2159:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2159 | msg_print ("Your lamp overflows, spilling oil on the ground."); | ^ dungeon.c:2160:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2160 | msg_print("Your lamp is full."); | ^ dungeon.c:2163:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2163 | msg_print ("Your lamp is more than half full."); | ^ dungeon.c:2165:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2165 | msg_print ("Your lamp is half full."); | ^ dungeon.c:2167:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2167 | msg_print ("Your lamp is less than half full."); | ^ dungeon.c:2168:18: warning: passing arguments to 'desc_remain' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2168 | desc_remain(i); | ^ dungeon.c:2169:20: warning: passing arguments to 'inven_destroy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2169 | inven_destroy(i); | ^ 239 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c creature.c In file included from creature.c:17: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from creature.c:17: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ creature.c:62:22: warning: passing arguments to 'panel_contains' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | (panel_contains((int)m_ptr->fy, (int)m_ptr->fx))) | ^ creature.c:68:19: warning: passing arguments to 'los' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | else if (los(char_row, char_col, (int)m_ptr->fy, (int)m_ptr->fx)) | ^ creature.c:107:12: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 107 | disturb (1, 0); | ^ creature.c:109:13: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | lite_spot((int)m_ptr->fy, (int)m_ptr->fx); | ^ creature.c:117:16: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | lite_spot((int)m_ptr->fy, (int)m_ptr->fx); | ^ creature.c:47:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | void update_mon(monptr) | ^ In file included from creature.c:17: ./externs.h:783:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 783 | void update_mon(); | ^ creature.c:126:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | static int movement_rate(speed) | ^ creature.c:145:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | static int check_mon_lite(y, x) | ^ creature.c:162:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 162 | static void get_moves(monptr, mm) | ^ creature.c:369:23: warning: passing arguments to 'is_a_vowel' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 369 | else if (is_a_vowel (r_ptr->name[0])) | ^ creature.c:397:16: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 397 | if (test_hit(60, (int)r_ptr->level, 0, p_ptr->pac+p_ptr->ptoac, | ^ creature.c:402:16: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 402 | if (test_hit(-3, (int)r_ptr->level, 0, p_ptr->pac+p_ptr->ptoac, | ^ creature.c:407:16: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 407 | if (test_hit(10, (int)r_ptr->level, 0, p_ptr->pac+p_ptr->ptoac, | ^ creature.c:412:16: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 412 | if (test_hit(10, (int)r_ptr->level, 0, p_ptr->pac+p_ptr->ptoac, | ^ creature.c:417:16: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 417 | if (test_hit(10, (int)r_ptr->level, 0, p_ptr->pac+p_ptr->ptoac, | ^ creature.c:422:16: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 422 | if (test_hit(0, (int)r_ptr->level, 0, p_ptr->pac+p_ptr->ptoac, | ^ creature.c:427:16: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 427 | if (test_hit(10, (int)r_ptr->level, 0, p_ptr->pac+p_ptr->ptoac, | ^ creature.c:432:16: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 432 | if (test_hit(10, (int)r_ptr->level, 0, p_ptr->pac+p_ptr->ptoac, | ^ creature.c:437:16: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 437 | if (test_hit(0, (int)r_ptr->level, 0, p_ptr->pac+p_ptr->ptoac, | ^ creature.c:442:16: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 442 | if (test_hit(2, (int)r_ptr->level, 0, p_ptr->pac+p_ptr->ptoac, | ^ creature.c:447:16: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 447 | if (test_hit(2, (int)r_ptr->level, 0, p_ptr->pac+p_ptr->ptoac, | ^ creature.c:452:17: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 452 | if ((test_hit(5, (int)r_ptr->level, 0, (int)py.misc.lev, | ^ creature.c:458:17: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 458 | if ((test_hit(2, (int)r_ptr->level, 0, (int)py.misc.lev, | ^ creature.c:464:16: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 464 | if (test_hit(5, (int)r_ptr->level, 0, p_ptr->pac+p_ptr->ptoac, | ^ creature.c:469:16: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 469 | if (test_hit(0, (int)r_ptr->level, 0, p_ptr->pac+p_ptr->ptoac, | ^ creature.c:474:16: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 474 | if (test_hit(0, (int)r_ptr->level, 0, p_ptr->pac+p_ptr->ptoac, | ^ creature.c:479:16: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 479 | if (test_hit(2, (int)r_ptr->level, 0, p_ptr->pac+p_ptr->ptoac, | ^ creature.c:484:16: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 484 | if (test_hit(2, (int)r_ptr->level, 0, p_ptr->pac+p_ptr->ptoac, | ^ creature.c:489:16: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 489 | if (test_hit(5, (int)r_ptr->level, 0, p_ptr->pac+p_ptr->ptoac, | ^ creature.c:497:16: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 497 | if (test_hit(20, (int)r_ptr->level, 0, p_ptr->pac+p_ptr->ptoac, | ^ creature.c:502:16: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 502 | if (test_hit(5, (int)r_ptr->level, 0, p_ptr->pac+p_ptr->ptoac, | ^ creature.c:507:16: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 507 | if (test_hit(5, (int)r_ptr->level, 0, p_ptr->pac+p_ptr->ptoac, | ^ creature.c:512:17: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 512 | if ((test_hit(15, (int)r_ptr->level, 0, p_ptr->pac+p_ptr->ptoac, | ^ creature.c:527:12: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 527 | disturb (1, 0); | ^ creature.c:531:23: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 531 | case 1: msg_print(strcat(tmp_str, "hits you.")); break; | ^ creature.c:532:23: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 532 | case 2: msg_print(strcat(tmp_str, "bites you.")); break; | ^ creature.c:533:23: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 533 | case 3: msg_print(strcat(tmp_str, "claws you.")); break; | ^ creature.c:534:23: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 534 | case 4: msg_print(strcat(tmp_str, "stings you.")); break; | ^ creature.c:535:23: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 535 | case 5: msg_print(strcat(tmp_str, "touches you.")); break; | ^ creature.c:539:23: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 539 | case 7: msg_print(strcat(tmp_str, "gazes at you.")); break; | ^ creature.c:540:23: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 540 | case 8: msg_print(strcat(tmp_str, "breathes on you.")); break; | ^ creature.c:541:23: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 541 | case 9: msg_print(strcat(tmp_str, "spits on you.")); break; | ^ creature.c:542:24: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 542 | case 10: msg_print(strcat(tmp_str,"makes a horrible wail."));break; | ^ creature.c:546:24: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 546 | case 12: msg_print(strcat(tmp_str, "crawls on you.")); break; | ^ creature.c:548:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 548 | msg_print(strcat(tmp_str, "releases a cloud of spores.")); break; | ^ creature.c:549:24: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 549 | case 14: msg_print(strcat(tmp_str, "begs you for money.")); break; | ^ creature.c:550:24: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 550 | case 15: msg_print("You've been slimed!"); break; | ^ creature.c:551:24: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 551 | case 16: msg_print(strcat(tmp_str, "crushes you.")); break; | ^ creature.c:552:24: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 552 | case 17: msg_print(strcat(tmp_str, "tramples you.")); break; | ^ creature.c:553:24: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 553 | case 18: msg_print(strcat(tmp_str, "drools on you.")); break; | ^ creature.c:555:22: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 555 | switch(randint(9)) | ^ creature.c:557:20: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 557 | case 1: msg_print(strcat(tmp_str, "insults you!")); break; | ^ creature.c:559:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 559 | msg_print(strcat(tmp_str, "insults your mother!")); break; | ^ creature.c:561:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 561 | msg_print(strcat(tmp_str, "gives you the finger!")); break; | ^ creature.c:562:20: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 562 | case 4: msg_print(strcat(tmp_str, "humiliates you!")); break; | ^ creature.c:563:20: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 563 | case 5: msg_print(strcat(tmp_str, "wets on your leg!")); break; | ^ creature.c:564:20: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 564 | case 6: msg_print(strcat(tmp_str, "defiles you!")); break; | ^ creature.c:565:20: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 565 | case 7: msg_print(strcat(tmp_str, "dances around you!"));break; | ^ creature.c:567:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 567 | msg_print(strcat(tmp_str, "makes obscene gestures!")); break; | ^ creature.c:568:20: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 568 | case 9: msg_print(strcat(tmp_str, "moons you!!!")); break; | ^ creature.c:571:24: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 571 | case 99: msg_print(strcat(tmp_str, "is repelled.")); break; | ^ creature.c:587:21: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 587 | damage = damroll (adice, asides); | ^ creature.c:593:16: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 593 | take_hit(damage, ddesc); | ^ creature.c:596:16: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 596 | take_hit(damage, ddesc); | ^ creature.c:598:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 598 | msg_print("You feel weaker for a moment, but it passes."); | ^ creature.c:599:24: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 599 | else if (randint(2) == 1) | ^ creature.c:601:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 601 | msg_print("You feel weaker."); | ^ creature.c:602:21: warning: passing arguments to 'dec_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 602 | (void) dec_stat (A_STR); | ^ creature.c:609:16: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 609 | take_hit(damage, ddesc); | ^ creature.c:610:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 610 | if (randint(2) == 1) | ^ creature.c:614:18: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 614 | msg_print("You feel confused."); | ^ creature.c:615:35: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 615 | f_ptr->confused += randint((int)r_ptr->level); | ^ creature.c:626:16: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 626 | take_hit(damage, ddesc); | ^ creature.c:628:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 628 | msg_print("You resist the effects!"); | ^ creature.c:631:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 631 | msg_print("You are suddenly afraid!"); | ^ creature.c:632:33: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 632 | f_ptr->afraid += 3 + randint((int)r_ptr->level); | ^ creature.c:641:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 641 | msg_print("You are enveloped in flames!"); | ^ creature.c:642:16: warning: passing arguments to 'fire_dam' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 642 | fire_dam(damage, ddesc); | ^ creature.c:645:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 645 | msg_print("You are covered in acid!"); | ^ creature.c:646:16: warning: passing arguments to 'acid_dam' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 646 | acid_dam(damage, ddesc); | ^ creature.c:649:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 649 | msg_print("You are covered with frost!"); | ^ creature.c:650:16: warning: passing arguments to 'cold_dam' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 650 | cold_dam(damage, ddesc); | ^ creature.c:653:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 653 | msg_print("Lightning strikes you!"); | ^ creature.c:654:17: warning: passing arguments to 'light_dam' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 654 | light_dam(damage, ddesc); | ^ creature.c:657:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 657 | msg_print("A stinging red gas swirls about you."); | ^ creature.c:658:19: warning: passing arguments to 'corrode_gas' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 658 | corrode_gas(ddesc); | ^ creature.c:659:16: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 659 | take_hit(damage, ddesc); | ^ creature.c:663:16: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 663 | take_hit(damage, ddesc); | ^ creature.c:666:33: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 666 | f_ptr->blind += 10 + randint((int)r_ptr->level); | ^ creature.c:667:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 667 | msg_print("Your eyes begin to sting."); | ^ creature.c:677:16: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 677 | take_hit(damage, ddesc); | ^ creature.c:679:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 679 | msg_print("You resist the effects!"); | ^ creature.c:683:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 683 | msg_print("You are unaffected."); | ^ creature.c:686:35: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 686 | f_ptr->paralysis = randint((int)r_ptr->level) + 3; | ^ creature.c:687:18: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 687 | msg_print("You are paralyzed."); | ^ creature.c:695:13: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 695 | (randint(124) < py.stats.use_stat[A_DEX])) | ^ creature.c:696:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 696 | msg_print("You quickly protect your money pouch!"); | ^ creature.c:699:36: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 699 | gold = (p_ptr->au/10) + randint(25); | ^ creature.c:704:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 704 | msg_print("Your purse feels lighter."); | ^ creature.c:707:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 707 | if (randint(2) == 1) | ^ creature.c:709:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 709 | msg_print("There is a puff of smoke!"); | ^ creature.c:710:18: warning: passing arguments to 'teleport_away' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 710 | teleport_away(monptr, MAX_SIGHT); | ^ creature.c:715:13: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 715 | (randint(124) < py.stats.use_stat[A_DEX])) | ^ creature.c:716:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 716 | msg_print("You grab hold of your backpack!"); | ^ creature.c:719:16: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 719 | i = randint(inven_ctr) - 1; | ^ creature.c:720:18: warning: passing arguments to 'inven_destroy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 720 | inven_destroy(i); | ^ creature.c:721:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 721 | msg_print("Your backpack feels lighter."); | ^ creature.c:723:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 723 | if (randint(2) == 1) | ^ creature.c:725:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 725 | msg_print("There is a puff of smoke!"); | ^ creature.c:726:18: warning: passing arguments to 'teleport_away' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 726 | teleport_away(monptr, MAX_SIGHT); | ^ creature.c:731:16: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 731 | take_hit(damage, ddesc); | ^ creature.c:732:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 732 | msg_print("You feel very sick."); | ^ creature.c:733:34: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 733 | f_ptr->poisoned += randint((int)r_ptr->level)+5; | ^ creature.c:737:16: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 737 | take_hit(damage, ddesc); | ^ creature.c:739:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 739 | msg_print("You feel clumsy for a moment, but it passes."); | ^ creature.c:742:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 742 | msg_print("You feel more clumsy."); | ^ creature.c:743:21: warning: passing arguments to 'dec_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 743 | (void) dec_stat (A_DEX); | ^ creature.c:748:16: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 748 | take_hit(damage, ddesc); | ^ creature.c:750:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 750 | msg_print("Your body resists the effects of the disease."); | ^ creature.c:753:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 753 | msg_print("Your health is damaged!"); | ^ creature.c:754:21: warning: passing arguments to 'dec_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 754 | (void) dec_stat (A_CON); | ^ creature.c:759:16: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 759 | take_hit(damage, ddesc); | ^ creature.c:760:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 760 | msg_print("You have trouble thinking clearly."); | ^ creature.c:762:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 762 | msg_print("But your mind quickly clears."); | ^ creature.c:764:19: warning: passing arguments to 'dec_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 764 | (void) dec_stat (A_INT); | ^ creature.c:768:16: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 768 | take_hit(damage, ddesc); | ^ creature.c:770:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 770 | msg_print("Your wisdom is sustained."); | ^ creature.c:773:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 773 | msg_print("Your wisdom is drained."); | ^ creature.c:774:21: warning: passing arguments to 'dec_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 774 | (void) dec_stat (A_WIS); | ^ creature.c:778:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 778 | msg_print("You feel your life draining away!"); | ^ creature.c:779:16: warning: passing arguments to 'lose_exp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 779 | lose_exp(damage + (py.misc.exp / 100)*MON_DRAIN_LIFE); | ^ creature.c:782:32: warning: passing arguments to 'aggravate_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 782 | (void) aggravate_monster(20); | ^ creature.c:786:22: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 786 | switch(randint(7)) | ^ creature.c:799:28: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 799 | i_ptr->tohit -= randint(2); | ^ creature.c:807:28: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 807 | i_ptr->todam -= randint(2); | ^ creature.c:815:28: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 815 | i_ptr->toac -= randint(2); | ^ creature.c:823:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 823 | msg_print("There is a static feeling in the air."); | ^ creature.c:830:22: warning: passing arguments to 'find_range' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 830 | if (find_range(TV_FOOD, TV_NEVER, &i, &j)) | ^ creature.c:832:18: warning: passing arguments to 'inven_destroy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 832 | inven_destroy(i); | ^ creature.c:833:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 833 | msg_print ("It got at your rations!"); | ^ creature.c:842:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 842 | i_ptr->p1 -= (250 + randint(250)); | ^ creature.c:845:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 845 | msg_print("Your light dims."); | ^ creature.c:853:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 853 | i = randint(inven_ctr) - 1; | ^ creature.c:861:20: warning: passing arguments to 'known2_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 861 | if (! known2_p (i_ptr)) | ^ creature.c:862:20: warning: passing arguments to 'add_inscribe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 862 | add_inscribe (i_ptr, ID_EMPTY); | ^ creature.c:863:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 863 | msg_print("Energy drains from your pack!"); | ^ creature.c:881:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 881 | msg_print("Your hands stop glowing."); | ^ creature.c:883:20: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 883 | if ((randint(MAX_MONS_LEVEL) < r_ptr->level) || | ^ creature.c:892:36: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 892 | m_ptr->confused = 2 + randint(16); | ^ creature.c:894:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 894 | msg_print(tmp_str); | ^ creature.c:895:40: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 895 | if (visible && !death && randint(4) == 1) | ^ creature.c:916:16: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 916 | disturb (1, 0); | ^ creature.c:918:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 918 | msg_print(strcat(tmp_str, "misses you.")); | ^ creature.c:335:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 335 | static void make_attack(monptr) | ^ creature.c:954:19: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 954 | (void) mmove(mm[i], &newy, &newx); | ^ creature.c:993:17: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 993 | if (randint((m_ptr->hp+1)*(50+t_ptr->p1)) < | ^ creature.c:999:17: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 999 | if (randint((m_ptr->hp+1)*(50-t_ptr->p1)) < | ^ creature.c:1002:19: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1002 | msg_print("You hear a door burst open!"); | ^ creature.c:1003:18: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1003 | disturb (1, 0); | ^ creature.c:1016:16: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1016 | invcopy(t_ptr, OBJ_OPEN_DOOR); | ^ creature.c:1018:27: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1018 | t_ptr->p1 = 1 - randint(2); | ^ creature.c:1020:18: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1020 | lite_spot(newy, newx); | ^ creature.c:1034:20: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1034 | if (randint((m_ptr->hp+1)*(80+abs(t_ptr->p1))) < | ^ creature.c:1037:13: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1037 | invcopy(t_ptr, OBJ_OPEN_DOOR); | ^ creature.c:1039:29: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1039 | t_ptr->p1 = 1 - randint(2); | ^ creature.c:1041:15: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1041 | lite_spot(newy, newx); | ^ creature.c:1042:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1042 | msg_print ("You hear a door burst open!"); | ^ creature.c:1043:14: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1043 | disturb (1, 0); | ^ creature.c:1053:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1053 | if (randint(OBJ_RUNE_PROT) < c_list[m_ptr->mptr].level) | ^ creature.c:1056:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1056 | msg_print("The rune of protection is broken!"); | ^ creature.c:1057:25: warning: passing arguments to 'delete_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1057 | (void) delete_object(newy, newx); | ^ creature.c:1104:23: warning: passing arguments to 'delete_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1104 | delete_monster((int) c_ptr->cptr); | ^ creature.c:1109:28: warning: passing arguments to 'fix1_delete_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1109 | fix1_delete_monster((int) c_ptr->cptr); | ^ creature.c:1083:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1083 | else if ((c_ptr->cptr > 1) && | ^ creature.c:1134:29: warning: passing arguments to 'delete_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1134 | (void) delete_object(newy, newx); | ^ creature.c:1138:16: warning: passing arguments to 'move_rec' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1138 | move_rec((int)m_ptr->fy, (int)m_ptr->fx, newy, newx); | ^ creature.c:1142:15: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1142 | lite_spot ((int)m_ptr->fy, (int)m_ptr->fx); | ^ creature.c:1146:31: warning: passing arguments to 'distance' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1146 | m_ptr->cdis = distance (char_row, char_col, newy, newx); | ^ creature.c:930:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 930 | static void make_move(monptr, mm, rcmove) | ^ creature.c:1182:14: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1182 | if (randint(chance) != 1) | ^ creature.c:1188:16: warning: passing arguments to 'los' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1188 | else if (!los(char_row, char_col, (int)m_ptr->fy, (int)m_ptr->fx)) | ^ creature.c:1208:27: warning: passing arguments to 'is_a_vowel' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1208 | else if (is_a_vowel (r_ptr->name[0])) | ^ creature.c:1224:29: warning: passing arguments to 'bit_pos' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1224 | spell_choice[k] = bit_pos(&i); | ^ creature.c:1228:42: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1228 | thrown_spell = spell_choice[randint(k) - 1]; | ^ creature.c:1232:10: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1232 | disturb (1, 0); | ^ creature.c:1237:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1237 | msg_print(cdesc); | ^ creature.c:1243:17: warning: passing arguments to 'teleport_away' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1243 | teleport_away(monptr, 5); | ^ creature.c:1246:17: warning: passing arguments to 'teleport_away' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1246 | teleport_away(monptr, MAX_SIGHT); | ^ creature.c:1249:15: warning: passing arguments to 'teleport_to' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1249 | teleport_to((int)m_ptr->fy, (int)m_ptr->fx); | ^ creature.c:1253:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1253 | msg_print("You resist the effects of the spell."); | ^ creature.c:1255:22: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1255 | take_hit(damroll(3, 8), ddesc); | ^ creature.c:1255:14: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1255 | take_hit(damroll(3, 8), ddesc); | ^ creature.c:1259:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1259 | msg_print("You resist the effects of the spell."); | ^ creature.c:1261:22: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1261 | take_hit(damroll(8, 8), ddesc); | ^ creature.c:1261:14: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1261 | take_hit(damroll(8, 8), ddesc); | ^ creature.c:1265:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1265 | msg_print("You are unaffected."); | ^ creature.c:1267:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1267 | msg_print("You resist the effects of the spell."); | ^ creature.c:1271:34: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1271 | py.flags.paralysis = randint(5)+4; | ^ creature.c:1275:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1275 | msg_print("You resist the effects of the spell."); | ^ creature.c:1279:36: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1279 | py.flags.blind += 12 + randint(3); | ^ creature.c:1283:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1283 | msg_print("You resist the effects of the spell."); | ^ creature.c:1287:33: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1287 | py.flags.confused = randint(5) + 3; | ^ creature.c:1291:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1291 | msg_print("You resist the effects of the spell."); | ^ creature.c:1295:31: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1295 | py.flags.afraid = randint(5) + 3; | ^ creature.c:1299:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1299 | msg_print(cdesc); | ^ creature.c:1304:25: warning: passing arguments to 'summon_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1304 | (void) summon_monster(&y, &x, FALSE); | ^ creature.c:1310:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1310 | msg_print(cdesc); | ^ creature.c:1315:24: warning: passing arguments to 'summon_undead' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1315 | (void) summon_undead(&y, &x); | ^ creature.c:1321:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1321 | msg_print("You are unaffected."); | ^ creature.c:1323:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1323 | msg_print("You resist the effects of the spell."); | ^ creature.c:1327:29: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1327 | py.flags.slow = randint(5) + 3; | ^ creature.c:1332:16: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1332 | disturb (1, 0); | ^ creature.c:1334:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1334 | msg_print(outval); | ^ creature.c:1338:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1338 | msg_print(outval); | ^ creature.c:1340:21: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1340 | r1 = (randint((int)r_ptr->level) >> 1) + 1; | ^ creature.c:1355:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1355 | msg_print(cdesc); | ^ creature.c:1356:10: warning: passing arguments to 'breath' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1356 | breath(GF_LIGHTNING, char_row, char_col, (m_ptr->hp / 4), ddesc, | ^ creature.c:1361:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1361 | msg_print(cdesc); | ^ creature.c:1362:10: warning: passing arguments to 'breath' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1362 | breath(GF_POISON_GAS, char_row, char_col, (m_ptr->hp / 3), ddesc, | ^ creature.c:1367:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1367 | msg_print(cdesc); | ^ creature.c:1368:10: warning: passing arguments to 'breath' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1368 | breath(GF_ACID, char_row, char_col, (m_ptr->hp / 3), ddesc, monptr); | ^ creature.c:1372:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1372 | msg_print(cdesc); | ^ creature.c:1373:10: warning: passing arguments to 'breath' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1373 | breath(GF_FROST, char_row, char_col, (m_ptr->hp / 3), ddesc, monptr); | ^ creature.c:1377:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1377 | msg_print(cdesc); | ^ creature.c:1378:10: warning: passing arguments to 'breath' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1378 | breath(GF_FIRE, char_row, char_col, (m_ptr->hp / 3), ddesc, monptr); | ^ creature.c:1382:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1382 | msg_print(cdesc); | ^ creature.c:1160:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1160 | static void mon_cast_spell(monptr, took_turn) | ^ creature.c:1413:26: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1413 | j = y - 2 + randint(3); | ^ creature.c:1414:26: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1414 | k = x - 2 + randint(3); | ^ creature.c:1417:20: warning: passing arguments to 'in_bounds' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1417 | if (in_bounds(j, k) && (j != y || k != x)) | ^ creature.c:1438:18: warning: passing arguments to 'delete_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1438 | delete_monster((int) c_ptr->cptr); | ^ creature.c:1443:23: warning: passing arguments to 'fix1_delete_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1443 | fix1_delete_monster((int) c_ptr->cptr); | ^ creature.c:1448:31: warning: passing arguments to 'place_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1448 | result = place_monster(j, k, cr_index, FALSE); | ^ creature.c:1462:27: warning: passing arguments to 'place_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1462 | result = place_monster(j, k, cr_index, FALSE); | ^ creature.c:1399:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1399 | int multiply_monster(y, x, cr_index, monptr) | ^ In file included from creature.c:17: ./externs.h:784:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 784 | int multiply_monster(); | ^ creature.c:1514:17: warning: passing arguments to 'in_bounds' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1514 | if (in_bounds(i, j) && (cave[i][j].cptr > 1)) | ^ creature.c:1520:30: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1520 | if ((k < 4) && (randint(k*MON_MULT_ADJ) == 1)) | ^ creature.c:1564:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1564 | dir = randint (k) - 1; | ^ creature.c:1578:37: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1578 | i = mon_take_hit(monptr, damroll (8, 8)); | ^ creature.c:1578:20: warning: passing arguments to 'mon_take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1578 | i = mon_take_hit(monptr, damroll (8, 8)); | ^ creature.c:1582:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1582 | msg_print("You hear a scream muffled by rock!"); | ^ creature.c:1587:18: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1587 | msg_print ("A creature digs itself out from the rock!"); | ^ creature.c:1588:21: warning: passing arguments to 'twall' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1588 | (void) twall ((int)m_ptr->fy, (int)m_ptr->fx, 1, 0); | ^ creature.c:1603:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1603 | mm[3] = randint(9); /* May attack only if cornered */ | ^ creature.c:1604:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1604 | mm[4] = randint(9); | ^ creature.c:1608:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1608 | mm[0] = randint(9); | ^ creature.c:1609:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1609 | mm[1] = randint(9); | ^ creature.c:1610:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1610 | mm[2] = randint(9); | ^ creature.c:1611:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1611 | mm[3] = randint(9); | ^ creature.c:1612:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1612 | mm[4] = randint(9); | ^ creature.c:1630:52: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1630 | if ((r_ptr->cmove & CM_75_RANDOM) && (randint(100) < 75)) | ^ creature.c:1632:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1632 | mm[0] = randint(9); | ^ creature.c:1633:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1633 | mm[1] = randint(9); | ^ creature.c:1634:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1634 | mm[2] = randint(9); | ^ creature.c:1635:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1635 | mm[3] = randint(9); | ^ creature.c:1636:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1636 | mm[4] = randint(9); | ^ creature.c:1641:57: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1641 | else if ((r_ptr->cmove & CM_40_RANDOM) && (randint(100) < 40)) | ^ creature.c:1643:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1643 | mm[0] = randint(9); | ^ creature.c:1644:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1644 | mm[1] = randint(9); | ^ creature.c:1645:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1645 | mm[2] = randint(9); | ^ creature.c:1646:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1646 | mm[3] = randint(9); | ^ creature.c:1647:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1647 | mm[4] = randint(9); | ^ creature.c:1652:57: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1652 | else if ((r_ptr->cmove & CM_20_RANDOM) && (randint(100) < 20)) | ^ creature.c:1654:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1654 | mm[0] = randint(9); | ^ creature.c:1655:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1655 | mm[1] = randint(9); | ^ creature.c:1656:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1656 | mm[2] = randint(9); | ^ creature.c:1657:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1657 | mm[3] = randint(9); | ^ creature.c:1658:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1658 | mm[4] = randint(9); | ^ creature.c:1665:15: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1665 | if (randint(200) == 1) | ^ creature.c:1667:23: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1667 | mm[0] = randint(9); | ^ creature.c:1668:23: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1668 | mm[1] = randint(9); | ^ creature.c:1669:23: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1669 | mm[2] = randint(9); | ^ creature.c:1670:23: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1670 | mm[3] = randint(9); | ^ creature.c:1671:23: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1671 | mm[4] = randint(9); | ^ creature.c:1479:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1479 | static void mon_move(monptr, rcmove) | ^ creature.c:1729:23: warning: passing arguments to 'fix2_delete_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1729 | fix2_delete_monster(i); | ^ creature.c:1733:29: warning: passing arguments to 'distance' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1733 | m_ptr->cdis = distance(char_row, char_col, | ^ creature.c:1761:22: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1761 | || (randint(50) == 1)) | ^ creature.c:1763:22: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1763 | notice = randint(1024); | ^ creature.c:1760:9: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1760 | else if ((py.flags.rest == 0 && py.flags.paralysis < 1) | ^ creature.c:1781:15: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1781 | if (randint(5000) < c_list[m_ptr->mptr].level | ^ creature.c:1792:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1792 | msg_print(strcat(cdesc, | ^ creature.c:1827:23: warning: passing arguments to 'fix2_delete_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1827 | fix2_delete_monster(i); | ^ creature.c:1707:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1707 | void creatures(attack) | ^ In file included from creature.c:17: ./externs.h:785:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 785 | void creatures(); | ^ 289 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c death.c In file included from death.c:87: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from death.c:87: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ death.c:94:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 94 | off_t lseek(); | ^ /usr/include/unistd.h:358:8: note: conflicting prototype is here 358 | off_t lseek(int, off_t, int); | ^ death.c:126:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | static void date(day) | ^ death.c:139:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | static char *center_string(centered_str, in_str) | ^ death.c:259:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 259 | msg_print("Sorry. This scorefile is from a different version of \ | ^ death.c:261:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 261 | msg_print (CNIL); | ^ death.c:279:14: warning: passing arguments to 'set_fileptr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 279 | set_fileptr(highscore_fp); | ^ death.c:282:15: warning: passing arguments to 'rd_highscore' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 282 | rd_highscore(&score); | ^ death.c:306:11: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 306 | prt(string, ++i, 0); | ^ death.c:309:16: warning: passing arguments to 'rd_highscore' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 309 | rd_highscore(&score); | ^ death.c:311:10: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 311 | prt("Rank Points Name Sex Race Class Lvl Killed By" | ^ death.c:313:18: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 313 | erase_line (1, 0); | ^ death.c:314:10: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 314 | prt("[Press any key to continue.]", 23, 23); | ^ death.c:213:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 213 | void display_scores(show_player) | ^ In file included from death.c:87: ./externs.h:788:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 788 | void display_scores(); | ^ death.c:374:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 374 | msg_print("Sorry. This scorefile is from a different version of \ | ^ death.c:376:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 376 | msg_print (CNIL); | ^ death.c:384:14: warning: passing arguments to 'set_fileptr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 384 | set_fileptr(highscore_fp); | ^ death.c:396:15: warning: passing arguments to 'rd_highscore' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 396 | rd_highscore(&score); | ^ death.c:405:19: warning: passing arguments to 'rd_highscore' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 405 | rd_highscore(&score); | ^ death.c:430:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 430 | put_buffer ("_______________________", 1, 15); | ^ death.c:431:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 431 | put_buffer ("/", 2, 14); | ^ death.c:432:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 432 | put_buffer ("\\ ___", 2, 38); | ^ death.c:433:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 433 | put_buffer ("/", 3, 13); | ^ death.c:434:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 434 | put_buffer ("\\ ___ / \\ ___", 3, 39); | ^ death.c:435:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 435 | put_buffer ("/ RIP \\ \\ : : / \\", 4, 12); | ^ death.c:436:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 436 | put_buffer ("/", 5, 11); | ^ death.c:437:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 437 | put_buffer ("\\ : _;,,,;_ : :", 5, 41); | ^ death.c:440:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 440 | put_buffer (str, 6, 10); | ^ death.c:441:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 441 | put_buffer ("| the | ___", 7, 9); | ^ death.c:447:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 447 | put_buffer (str, 8, 9); | ^ death.c:448:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 448 | put_buffer ("|", 9, 9); | ^ death.c:449:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 449 | put_buffer ("| : :", 9, 43); | ^ death.c:457:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 457 | put_buffer (str, 10, 9); | ^ death.c:461:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 461 | put_buffer (str, 11, 9); | ^ death.c:464:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 464 | put_buffer (str, 12, 9); | ^ death.c:467:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 467 | put_buffer (str, 13, 9); | ^ death.c:470:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 470 | put_buffer (str, 14, 9); | ^ death.c:471:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 471 | put_buffer ("| killed by |", 15, 9); | ^ death.c:477:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 477 | put_buffer (str, 16, 9); | ^ death.c:481:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 481 | put_buffer (str, 17, 9); | ^ death.c:482:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 482 | put_buffer ("*| * * * * * * | *", 18, 8); | ^ death.c:483:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 483 | put_buffer ("________)/\\\\_)_/___(\\/___(//_\\)/_\\//__\\\\(/_|_)_______", | ^ death.c:520:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 520 | put_buffer ("(ESC to abort, return to print on screen, or file name)", | ^ death.c:522:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 522 | put_buffer ("Character record?", 22, 0); | ^ death.c:523:18: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 523 | if (get_string (str, 22, 18, 60)) | ^ death.c:528:10: warning: passing arguments to 'known1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 528 | known1(&inventory[i]); | ^ death.c:529:10: warning: passing arguments to 'known2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 529 | known2(&inventory[i]); | ^ death.c:541:24: warning: passing arguments to 'file_character' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 541 | if (!file_character (str)) | ^ death.c:549:15: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 549 | put_buffer ("Type ESC to skip the inventory:", 23, 0); | ^ death.c:553:18: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 553 | msg_print ("You are using:"); | ^ death.c:554:26: warning: passing arguments to 'show_equip' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 554 | (void) show_equip (TRUE, 0); | ^ death.c:555:18: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 555 | msg_print (CNIL); | ^ death.c:556:18: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 556 | msg_print ("You are carrying:"); | ^ death.c:557:19: warning: passing arguments to 'clear_from' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 557 | clear_from (1); | ^ death.c:558:26: warning: passing arguments to 'show_inven' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 558 | (void) show_inven (0, inven_ctr-1, TRUE, 0, CNIL); | ^ death.c:559:18: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 559 | msg_print (CNIL); | ^ death.c:575:24: warning: passing arguments to 'item_value' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 575 | total += item_value(&inventory[i]); | ^ death.c:605:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 605 | msg_print("Sorry, scores for games restored from panic save files \ | ^ death.c:665:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 665 | msg_print("Error gaining lock for score file"); | ^ death.c:666:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 666 | msg_print(CNIL); | ^ death.c:728:14: warning: passing arguments to 'set_fileptr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 728 | set_fileptr(highscore_fp); | ^ death.c:732:15: warning: passing arguments to 'rd_highscore' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 732 | rd_highscore(&old_entry); | ^ death.c:763:19: warning: passing arguments to 'rd_highscore' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 763 | rd_highscore(&old_entry); | ^ death.c:774:19: warning: passing arguments to 'wr_highscore' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 774 | wr_highscore(&new_entry); | ^ death.c:796:16: warning: passing arguments to 'wr_highscore' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 796 | wr_highscore(&entry); | ^ death.c:822:16: warning: passing arguments to 'rd_highscore' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 822 | rd_highscore(&old_entry); | ^ death.c:831:16: warning: passing arguments to 'wr_highscore' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 831 | wr_highscore(&entry); | ^ death.c:865:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 865 | put_buffer("#", 1, 34); | ^ death.c:866:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 866 | put_buffer("#####", 2, 32); | ^ death.c:867:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 867 | put_buffer("#", 3, 34); | ^ death.c:868:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 868 | put_buffer(",,, $$$ ,,,", 4, 28); | ^ death.c:869:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 869 | put_buffer(",,=$ \"$$$$$\" $=,,", 5, 24); | ^ death.c:870:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 870 | put_buffer(",$$ $$$ $$,", 6, 22); | ^ death.c:871:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 871 | put_buffer("*> <*> <*", 7, 22); | ^ death.c:872:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 872 | put_buffer("$$ $$$ $$", 8, 22); | ^ death.c:873:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 873 | put_buffer("\"$$ $$$ $$\"", 9, 22); | ^ death.c:874:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 874 | put_buffer("\"$$ $$$ $$\"", 10, 23); | ^ death.c:876:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 876 | put_buffer(p, 11, 24); | ^ death.c:877:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 877 | put_buffer(p, 12, 24); | ^ death.c:878:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 878 | put_buffer("Veni, Vidi, Vici!", 15, 26); | ^ death.c:879:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 879 | put_buffer("I came, I saw, I conquered!", 16, 21); | ^ death.c:881:15: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 881 | put_buffer("All Hail the Mighty King!", 17, 22); | ^ death.c:883:15: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 883 | put_buffer("All Hail the Mighty Queen!", 17, 22); | ^ death.c:885:13: warning: passing arguments to 'pause_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 885 | pause_line(23); | ^ death.c:898:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 898 | msg_print(CNIL); | ^ death.c:925:14: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 925 | erase_line (23, 0); | ^ 88 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c eat.c In file included from eat.c:12: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from eat.c:12: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ eat.c:34:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | msg_print("But you are not carrying anything."); | ^ eat.c:35:23: warning: passing arguments to 'find_range' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 35 | else if (!find_range(TV_FOOD, TV_NEVER, &j, &k)) | ^ eat.c:36:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | msg_print("You are not carrying any food."); | ^ eat.c:37:20: warning: passing arguments to 'get_item' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | else if (get_item(&item_val, "Eat what?", j, k, CNIL, CNIL)) | ^ eat.c:45:15: warning: passing arguments to 'bit_pos' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 45 | j = bit_pos(&i) + 1; | ^ eat.c:51:34: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | f_ptr->poisoned += randint(10) + i_ptr->level; | ^ eat.c:56:31: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | f_ptr->blind += randint(250) + 10*i_ptr->level + 100; | ^ eat.c:58:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | msg_print("A veil of darkness surrounds you."); | ^ eat.c:63:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | f_ptr->afraid += randint(10) + i_ptr->level; | ^ eat.c:64:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | msg_print("You feel terrified!"); | ^ eat.c:69:34: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | f_ptr->confused += randint(10) + i_ptr->level; | ^ eat.c:70:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | msg_print("You feel drugged."); | ^ eat.c:75:31: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | f_ptr->image += randint(200) + 25*i_ptr->level + 200; | ^ eat.c:76:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | msg_print("You feel drugged."); | ^ eat.c:123:21: warning: passing arguments to 'res_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | if (res_stat (A_STR)) | ^ eat.c:125:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | msg_print("You feel your strength returning."); | ^ eat.c:130:21: warning: passing arguments to 'res_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | if (res_stat (A_CON)) | ^ eat.c:132:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 132 | msg_print("You feel your health returning."); | ^ eat.c:137:21: warning: passing arguments to 'res_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 137 | if (res_stat (A_INT)) | ^ eat.c:139:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | msg_print("Your head spins a moment."); | ^ eat.c:144:21: warning: passing arguments to 'res_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 144 | if (res_stat (A_WIS)) | ^ eat.c:146:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | msg_print("You feel your wisdom returning."); | ^ eat.c:151:21: warning: passing arguments to 'res_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 151 | if (res_stat (A_DEX)) | ^ eat.c:153:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | msg_print("You feel more dextrous."); | ^ eat.c:158:21: warning: passing arguments to 'res_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | if (res_stat (A_CHR)) | ^ eat.c:160:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 160 | msg_print("Your skin stops itching."); | ^ eat.c:165:33: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 165 | ident = hp_player(randint(6)); | ^ eat.c:165:25: warning: passing arguments to 'hp_player' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 165 | ident = hp_player(randint(6)); | ^ eat.c:168:33: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 168 | ident = hp_player(randint(12)); | ^ eat.c:168:25: warning: passing arguments to 'hp_player' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 168 | ident = hp_player(randint(12)); | ^ eat.c:171:33: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 171 | ident = hp_player(randint(18)); | ^ eat.c:171:25: warning: passing arguments to 'hp_player' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 171 | ident = hp_player(randint(18)); | ^ eat.c:179:33: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 179 | ident = hp_player(damroll(3, 12)); | ^ eat.c:179:25: warning: passing arguments to 'hp_player' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 179 | ident = hp_player(damroll(3, 12)); | ^ eat.c:182:24: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | take_hit(randint(18), "poisonous food."); | ^ eat.c:182:16: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | take_hit(randint(18), "poisonous food."); | ^ eat.c:200:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 200 | msg_print("Internal error in eat()"); | ^ eat.c:207:17: warning: passing arguments to 'known1_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 207 | if (!known1_p(i_ptr)) | ^ eat.c:215:17: warning: passing arguments to 'identify' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 215 | identify (&item_val); | ^ eat.c:219:25: warning: passing arguments to 'known1_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 219 | else if (!known1_p(i_ptr)) | ^ eat.c:220:9: warning: passing arguments to 'sample' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 220 | sample (i_ptr); | ^ eat.c:221:15: warning: passing arguments to 'add_food' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | add_food(i_ptr->p1); | ^ eat.c:228:18: warning: passing arguments to 'desc_remain' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 228 | desc_remain(item_val); | ^ eat.c:229:20: warning: passing arguments to 'inven_destroy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 229 | inven_destroy(item_val); | ^ 46 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c help.c In file included from help.c:12: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from help.c:12: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ help.c:20:14: warning: passing arguments to 'get_com' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 20 | if (get_com("Enter character to be identified :", &command)) | ^ help.c:25:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | case ' ': prt(" - An open pit.", 0, 0); break; | ^ help.c:26:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | case '!': prt("! - A potion.", 0, 0); break; | ^ help.c:27:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | case '"': prt("\" - An amulet, periapt, or necklace.", 0, 0); break; | ^ help.c:28:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 28 | case '#': prt("# - A stone wall.", 0, 0); break; | ^ help.c:29:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | case '$': prt("$ - Treasure.", 0, 0); break; | ^ help.c:32:7: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | prt("% - A magma or quartz vein.", 0, 0); | ^ help.c:34:7: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | prt("% - Not used.", 0, 0); | ^ help.c:36:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | case '&': prt("& - Treasure chest.", 0, 0); break; | ^ help.c:37:21: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | case '\'': prt("' - An open door.", 0, 0); break; | ^ help.c:38:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | case '(': prt("( - Soft armor.", 0, 0); break; | ^ help.c:39:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | case ')': prt(") - A shield.", 0, 0); break; | ^ help.c:40:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | case '*': prt("* - Gems.", 0, 0); break; | ^ help.c:41:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | case '+': prt("+ - A closed door.", 0, 0); break; | ^ help.c:42:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | case ',': prt(", - Food or mushroom patch.", 0, 0); break; | ^ help.c:43:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | case '-': prt("- - A wand", 0, 0); break; | ^ help.c:44:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | case '.': prt(". - Floor.", 0, 0); break; | ^ help.c:45:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 45 | case '/': prt("/ - A pole weapon.", 0, 0); break; | ^ help.c:47:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | case '1': prt("1 - Entrance to General Store.", 0, 0); break; | ^ help.c:48:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | case '2': prt("2 - Entrance to Armory.", 0, 0); break; | ^ help.c:49:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | case '3': prt("3 - Entrance to Weaponsmith.", 0, 0); break; | ^ help.c:50:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | case '4': prt("4 - Entrance to Temple.", 0, 0); break; | ^ help.c:51:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | case '5': prt("5 - Entrance to Alchemy shop.", 0, 0); break; | ^ help.c:52:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | case '6': prt("6 - Entrance to Magic-Users store.", 0, 0); break; | ^ help.c:56:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | case ':': prt(": - Rubble.", 0, 0); break; | ^ help.c:57:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | case ';': prt("; - A loose rock.", 0, 0); break; | ^ help.c:58:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | case '<': prt("< - An up staircase.", 0, 0); break; | ^ help.c:59:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | case '=': prt("= - A ring.", 0, 0); break; | ^ help.c:60:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | case '>': prt("> - A down staircase.", 0, 0); break; | ^ help.c:61:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | case '?': prt("? - A scroll.", 0, 0); break; | ^ help.c:62:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | case '@': prt(py.misc.name, 0, 0); break; | ^ help.c:63:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | case 'A': prt("A - Giant Ant Lion.", 0, 0); break; | ^ help.c:64:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | case 'B': prt("B - The Balrog.", 0, 0); break; | ^ help.c:65:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 65 | case 'C': prt("C - Gelatinous Cube.", 0, 0); break; | ^ help.c:66:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | case 'D': prt("D - An Ancient Dragon (Beware).", 0, 0); break; | ^ help.c:67:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | case 'E': prt("E - Elemental.", 0, 0); break; | ^ help.c:68:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | case 'F': prt("F - Giant Fly.", 0, 0); break; | ^ help.c:69:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | case 'G': prt("G - Ghost.", 0, 0); break; | ^ help.c:70:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | case 'H': prt("H - Hobgoblin.", 0, 0); break; | ^ help.c:72:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | case 'J': prt("J - Jelly.", 0, 0); break; | ^ help.c:73:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | case 'K': prt("K - Killer Beetle.", 0, 0); break; | ^ help.c:74:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | case 'L': prt("L - Lich.", 0, 0); break; | ^ help.c:75:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | case 'M': prt("M - Mummy.", 0, 0); break; | ^ help.c:77:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | case 'O': prt("O - Ooze.", 0, 0); break; | ^ help.c:78:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | case 'P': prt("P - Giant humanoid.", 0, 0); break; | ^ help.c:79:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | case 'Q': prt("Q - Quylthulg (Pulsing Flesh Mound).", 0, 0); break; | ^ help.c:80:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | case 'R': prt("R - Reptile.", 0, 0); break; | ^ help.c:81:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | case 'S': prt("S - Giant Scorpion.", 0, 0); break; | ^ help.c:82:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | case 'T': prt("T - Troll.", 0, 0); break; | ^ help.c:83:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | case 'U': prt("U - Umber Hulk.", 0, 0); break; | ^ help.c:84:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | case 'V': prt("V - Vampire.", 0, 0); break; | ^ help.c:85:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | case 'W': prt("W - Wight or Wraith.", 0, 0); break; | ^ help.c:86:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | case 'X': prt("X - Xorn.", 0, 0); break; | ^ help.c:87:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | case 'Y': prt("Y - Yeti.", 0, 0); break; | ^ help.c:89:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | case '[': prt("[ - Hard armor.", 0, 0); break; | ^ help.c:90:21: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | case '\\': prt("\\ - A hafted weapon.", 0, 0); break; | ^ help.c:91:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | case ']': prt("] - Misc. armor.", 0, 0); break; | ^ help.c:92:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | case '^': prt("^ - A trap.", 0, 0); break; | ^ help.c:93:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 93 | case '_': prt("_ - A staff.", 0, 0); break; | ^ help.c:95:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | case 'a': prt("a - Giant Ant.", 0, 0); break; | ^ help.c:96:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | case 'b': prt("b - Giant Bat.", 0, 0); break; | ^ help.c:97:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | case 'c': prt("c - Giant Centipede.", 0, 0); break; | ^ help.c:98:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | case 'd': prt("d - Dragon.", 0, 0); break; | ^ help.c:99:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | case 'e': prt("e - Floating Eye.", 0, 0); break; | ^ help.c:100:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | case 'f': prt("f - Giant Frog.", 0, 0); break; | ^ help.c:101:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | case 'g': prt("g - Golem.", 0, 0); break; | ^ help.c:102:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | case 'h': prt("h - Harpy.", 0, 0); break; | ^ help.c:103:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | case 'i': prt("i - Icky Thing.", 0, 0); break; | ^ help.c:104:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 104 | case 'j': prt("j - Jackal.", 0, 0); break; | ^ help.c:105:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | case 'k': prt("k - Kobold.", 0, 0); break; | ^ help.c:106:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | case 'l': prt("l - Giant Louse.", 0, 0); break; | ^ help.c:107:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 107 | case 'm': prt("m - Mold.", 0, 0); break; | ^ help.c:108:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 108 | case 'n': prt("n - Naga.", 0, 0); break; | ^ help.c:109:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | case 'o': prt("o - Orc or Ogre.", 0, 0); break; | ^ help.c:110:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | case 'p': prt("p - Person (Humanoid).", 0, 0); break; | ^ help.c:111:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | case 'q': prt("q - Quasit.", 0, 0); break; | ^ help.c:112:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | case 'r': prt("r - Rodent.", 0, 0); break; | ^ help.c:113:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 113 | case 's': prt("s - Skeleton.", 0, 0); break; | ^ help.c:114:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | case 't': prt("t - Giant Tick.", 0, 0); break; | ^ help.c:117:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | case 'w': prt("w - Worm or Worm Mass.", 0, 0); break; | ^ help.c:119:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | case 'y': prt("y - Yeek.", 0, 0); break; | ^ help.c:120:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 120 | case 'z': prt("z - Zombie.", 0, 0); break; | ^ help.c:121:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 121 | case '{': prt("{ - Arrow, bolt, or bullet.", 0, 0); break; | ^ help.c:122:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | case '|': prt("| - A sword or dagger.", 0, 0); break; | ^ help.c:123:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | case '}': prt("} - Bow, crossbow, or sling.", 0, 0); break; | ^ help.c:124:20: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | case '~': prt("~ - Miscellaneous item.", 0, 0); break; | ^ help.c:125:19: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | default: prt("Not Used.", 0, 0); break; | ^ help.c:131:58: warning: passing arguments to 'bool_roff_recall' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 131 | if ((c_list[i].cchar == command) && bool_roff_recall (i)) | ^ help.c:135:17: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 135 | put_buffer ("You recall those details? [y/n]", 0, 40); | ^ help.c:139:17: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | erase_line (0, 40); | ^ help.c:143:22: warning: passing arguments to 'roff_recall' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | query = roff_recall (i); | ^ 93 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c magic.c In file included from magic.c:12: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from magic.c:12: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ magic.c:30:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | msg_print("You can't see to read your spell book!"); | ^ magic.c:32:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | msg_print("You have no light to read by."); | ^ magic.c:34:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | msg_print("You are too confused."); | ^ magic.c:36:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | msg_print("You can't cast spells!"); | ^ magic.c:37:23: warning: passing arguments to 'find_range' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | else if (!find_range(TV_MAGIC_BOOK, TV_NEVER, &i, &j)) | ^ magic.c:38:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | msg_print("But you are not carrying any spell-books!"); | ^ magic.c:39:20: warning: passing arguments to 'get_item' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | else if (get_item(&item_val, "Use which spell-book?", i, j, CNIL, CNIL)) | ^ magic.c:41:26: warning: passing arguments to 'cast_spell' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | result = cast_spell("Cast which spell?", item_val, &choice, &chance); | ^ magic.c:43:11: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | msg_print("You don't know any spells in that book."); | ^ magic.c:49:15: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | if (randint(100) < chance) | ^ magic.c:50:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | msg_print("You failed to get the spell off!"); | ^ magic.c:57:16: warning: passing arguments to 'get_dir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | if (get_dir(CNIL, &dir)) | ^ magic.c:59:17: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | damroll(2, 6), spell_names[0]); | ^ magic.c:58:16: warning: passing arguments to 'fire_bolt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | fire_bolt(GF_MAGIC_MISSILE, dir, char_row, char_col, | ^ magic.c:65:13: warning: passing arguments to 'teleport' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 65 | teleport(10); | ^ magic.c:68:22: warning: passing arguments to 'light_area' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | (void) light_area(char_row, char_col); | ^ magic.c:71:29: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | (void) hp_player(damroll(4, 4)); | ^ magic.c:71:21: warning: passing arguments to 'hp_player' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | (void) hp_player(damroll(4, 4)); | ^ magic.c:78:16: warning: passing arguments to 'get_dir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | if (get_dir(CNIL, &dir)) | ^ magic.c:79:16: warning: passing arguments to 'fire_ball' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | fire_ball(GF_POISON_GAS, dir, char_row, char_col, 12, | ^ magic.c:83:16: warning: passing arguments to 'get_dir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | if (get_dir(CNIL, &dir)) | ^ magic.c:84:29: warning: passing arguments to 'confuse_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | (void) confuse_monster(dir, char_row, char_col); | ^ magic.c:87:16: warning: passing arguments to 'get_dir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | if (get_dir(CNIL, &dir)) | ^ magic.c:89:17: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | damroll(4, 8), spell_names[8]); | ^ magic.c:88:16: warning: passing arguments to 'fire_bolt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | fire_bolt(GF_LIGHTNING, dir, char_row, char_col, | ^ magic.c:95:16: warning: passing arguments to 'get_dir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | if (get_dir(CNIL, &dir)) | ^ magic.c:96:27: warning: passing arguments to 'sleep_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | (void) sleep_monster(dir, char_row, char_col); | ^ magic.c:102:13: warning: passing arguments to 'teleport' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | teleport((int)(py.misc.lev*5)); | ^ magic.c:116:16: warning: passing arguments to 'get_dir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | if (get_dir(CNIL, &dir)) | ^ magic.c:118:17: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | damroll(6, 8), spell_names[14]); | ^ magic.c:117:16: warning: passing arguments to 'fire_bolt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | fire_bolt(GF_FROST, dir, char_row, char_col, | ^ magic.c:121:16: warning: passing arguments to 'get_dir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 121 | if (get_dir(CNIL, &dir)) | ^ magic.c:122:25: warning: passing arguments to 'wall_to_mud' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | (void) wall_to_mud(dir, char_row, char_col); | ^ magic.c:128:20: warning: passing arguments to 'recharge' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 128 | (void) recharge(20); | ^ magic.c:131:27: warning: passing arguments to 'sleep_monsters1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 131 | (void) sleep_monsters1(char_row, char_col); | ^ magic.c:134:16: warning: passing arguments to 'get_dir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | if (get_dir(CNIL, &dir)) | ^ magic.c:135:26: warning: passing arguments to 'poly_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 135 | (void) poly_monster(dir, char_row, char_col); | ^ magic.c:144:16: warning: passing arguments to 'get_dir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 144 | if (get_dir(CNIL, &dir)) | ^ magic.c:146:17: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | damroll(9, 8), spell_names[22]); | ^ magic.c:145:16: warning: passing arguments to 'fire_bolt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | fire_bolt(GF_FIRE, dir, char_row, char_col, | ^ magic.c:149:16: warning: passing arguments to 'get_dir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 149 | if (get_dir(CNIL, &dir)) | ^ magic.c:150:26: warning: passing arguments to 'speed_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 150 | (void)speed_monster(dir, char_row, char_col, -1); | ^ magic.c:153:16: warning: passing arguments to 'get_dir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | if (get_dir(CNIL, &dir)) | ^ magic.c:154:16: warning: passing arguments to 'fire_ball' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 154 | fire_ball(GF_FROST, dir, char_row, char_col, 48, | ^ magic.c:158:20: warning: passing arguments to 'recharge' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | (void) recharge(60); | ^ magic.c:161:16: warning: passing arguments to 'get_dir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 161 | if (get_dir(CNIL, &dir)) | ^ magic.c:162:30: warning: passing arguments to 'teleport_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 162 | (void) teleport_monster(dir, char_row, char_col); | ^ magic.c:166:27: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 166 | f_ptr->fast += randint(20) + py.misc.lev; | ^ magic.c:169:16: warning: passing arguments to 'get_dir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 169 | if (get_dir(CNIL, &dir)) | ^ magic.c:170:16: warning: passing arguments to 'fire_ball' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | fire_ball(GF_FIRE, dir, char_row, char_col, 72, | ^ magic.c:174:17: warning: passing arguments to 'destroy_area' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 174 | destroy_area(char_row, char_col); | ^ magic.c:199:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 199 | msg_print("You faint from the effort!"); | ^ magic.c:201:14: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 201 | randint((int)(5*(m_ptr->smana-p_ptr->cmana))); | ^ magic.c:204:16: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 204 | if (randint(3) == 1) | ^ magic.c:206:18: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 206 | msg_print("You have damaged your health!"); | ^ magic.c:207:25: warning: passing arguments to 'dec_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 207 | (void) dec_stat (A_CON); | ^ 58 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c potions.c In file included from potions.c:12: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from potions.c:12: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ potions.c:36:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | msg_print("But you are not carrying anything."); | ^ potions.c:37:23: warning: passing arguments to 'find_range' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | else if (!find_range(TV_POTION1, TV_POTION2, &j, &k)) | ^ potions.c:38:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | msg_print("You are not carrying any potions."); | ^ potions.c:39:20: warning: passing arguments to 'get_item' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | else if (get_item(&item_val, "Quaff which potion?", j, k, CNIL, CNIL)) | ^ potions.c:47:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | msg_print ("You feel less thirsty."); | ^ potions.c:52:15: warning: passing arguments to 'bit_pos' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | j = bit_pos(&i) + 1; | ^ potions.c:59:21: warning: passing arguments to 'inc_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | if (inc_stat (A_STR)) | ^ potions.c:61:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | msg_print("Wow! What bulging muscles!"); | ^ potions.c:70:21: warning: passing arguments to 'res_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | if (res_stat (A_STR)) | ^ potions.c:72:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | msg_print("You feel warm all over."); | ^ potions.c:77:21: warning: passing arguments to 'inc_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | if (inc_stat (A_INT)) | ^ potions.c:79:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | msg_print("Aren't you brilliant!"); | ^ potions.c:88:21: warning: passing arguments to 'res_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | if (res_stat (A_INT)) | ^ potions.c:90:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | msg_print("You have have a warm feeling."); | ^ potions.c:95:21: warning: passing arguments to 'inc_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | if (inc_stat (A_WIS)) | ^ potions.c:97:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | msg_print("You suddenly have a profound thought!"); | ^ potions.c:106:21: warning: passing arguments to 'res_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | if (res_stat (A_WIS)) | ^ potions.c:108:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 108 | msg_print("You feel your wisdom returning."); | ^ potions.c:113:21: warning: passing arguments to 'inc_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 113 | if (inc_stat (A_CHR)) | ^ potions.c:115:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | msg_print("Gee, ain't you cute!"); | ^ potions.c:124:21: warning: passing arguments to 'res_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | if (res_stat (A_CHR)) | ^ potions.c:126:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | msg_print("You feel your looks returning."); | ^ potions.c:131:33: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 131 | ident = hp_player(damroll(2, 7)); | ^ potions.c:131:25: warning: passing arguments to 'hp_player' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 131 | ident = hp_player(damroll(2, 7)); | ^ potions.c:134:33: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | ident = hp_player(damroll(4, 7)); | ^ potions.c:134:25: warning: passing arguments to 'hp_player' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | ident = hp_player(damroll(4, 7)); | ^ potions.c:137:33: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 137 | ident = hp_player(damroll(6, 7)); | ^ potions.c:137:25: warning: passing arguments to 'hp_player' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 137 | ident = hp_player(damroll(6, 7)); | ^ potions.c:140:25: warning: passing arguments to 'hp_player' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 140 | ident = hp_player(1000); | ^ potions.c:143:21: warning: passing arguments to 'inc_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | if (inc_stat (A_CON)) | ^ potions.c:145:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | msg_print("You feel tingly for a moment."); | ^ potions.c:156:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 156 | msg_print("You feel more experienced."); | ^ potions.c:166:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 166 | msg_print("You fall asleep."); | ^ potions.c:167:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 167 | f_ptr->paralysis += randint(4) + 4; | ^ potions.c:175:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | msg_print("You are covered by a veil of darkness."); | ^ potions.c:178:31: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 178 | f_ptr->blind += randint(100) + 100; | ^ potions.c:184:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 184 | msg_print("Hey! This is good stuff! * Hick! *"); | ^ potions.c:187:34: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 187 | f_ptr->confused += randint(20) + 12; | ^ potions.c:193:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 193 | msg_print("You feel very sick."); | ^ potions.c:196:34: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 196 | f_ptr->poisoned += randint(15) + 10; | ^ potions.c:201:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 201 | py.flags.fast += randint(25) + 15; | ^ potions.c:206:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 206 | py.flags.slow += randint(25) + 15; | ^ potions.c:209:21: warning: passing arguments to 'inc_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 209 | if (inc_stat (A_DEX)) | ^ potions.c:211:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 211 | msg_print("You feel more limber!"); | ^ potions.c:216:21: warning: passing arguments to 'res_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 216 | if (res_stat (A_DEX)) | ^ potions.c:218:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 218 | msg_print("You feel less clumsy."); | ^ potions.c:223:21: warning: passing arguments to 'res_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 223 | if (res_stat (A_CON)) | ^ potions.c:225:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 225 | msg_print("You feel your health returning!"); | ^ potions.c:281:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 281 | msg_print("You feel your memories fade."); | ^ potions.c:287:22: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 287 | m += (randint((int)scale) * py.misc.exp) / (scale * 5); | ^ potions.c:290:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 290 | m += randint((int)py.misc.exp) / 5; | ^ potions.c:291:13: warning: passing arguments to 'lose_exp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 291 | lose_exp(m); | ^ potions.c:300:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 300 | msg_print("The potion makes you vomit!"); | ^ potions.c:306:34: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 306 | py.flags.invuln += randint(10) + 10; | ^ potions.c:311:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 311 | py.flags.hero += randint(25) + 25; | ^ potions.c:316:33: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 316 | py.flags.shero += randint(25) + 25; | ^ potions.c:328:37: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 328 | f_ptr->resist_heat += randint(10) + 10; | ^ potions.c:334:37: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 334 | f_ptr->resist_cold += randint(10) + 10; | ^ potions.c:339:27: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 339 | detect_inv2(randint(12)+12); | ^ potions.c:339:19: warning: passing arguments to 'detect_inv2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 339 | detect_inv2(randint(12)+12); | ^ potions.c:353:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 353 | msg_print("Your feel your head clear."); | ^ potions.c:361:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 361 | msg_print("Your eyes begin to tingle."); | ^ potions.c:364:41: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 364 | f_ptr->tim_infra += 100 + randint(100); | ^ potions.c:367:18: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 367 | msg_print ("Internal error in potion()"); | ^ potions.c:374:17: warning: passing arguments to 'known1_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 374 | if (!known1_p(i_ptr)) | ^ potions.c:381:16: warning: passing arguments to 'identify' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 381 | identify(&item_val); | ^ potions.c:385:25: warning: passing arguments to 'known1_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 385 | else if (!known1_p(i_ptr)) | ^ potions.c:386:9: warning: passing arguments to 'sample' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 386 | sample (i_ptr); | ^ potions.c:388:15: warning: passing arguments to 'add_food' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 388 | add_food(i_ptr->p1); | ^ potions.c:389:18: warning: passing arguments to 'desc_remain' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 389 | desc_remain(item_val); | ^ potions.c:390:20: warning: passing arguments to 'inven_destroy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 390 | inven_destroy(item_val); | ^ 73 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c prayer.c In file included from prayer.c:12: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from prayer.c:12: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ prayer.c:30:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | msg_print("You can't see to read your prayer!"); | ^ prayer.c:32:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | msg_print("You have no light to read by."); | ^ prayer.c:34:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | msg_print("You are too confused."); | ^ prayer.c:36:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | msg_print("Pray hard enough and your prayers may be answered."); | ^ prayer.c:38:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | msg_print ("But you are not carrying anything!"); | ^ prayer.c:39:23: warning: passing arguments to 'find_range' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | else if (!find_range(TV_PRAYER_BOOK, TV_NEVER, &i, &j)) | ^ prayer.c:40:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | msg_print ("You are not carrying any Holy Books!"); | ^ prayer.c:41:20: warning: passing arguments to 'get_item' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | else if (get_item(&item_val, "Use which Holy Book?", i, j, CNIL, CNIL)) | ^ prayer.c:43:26: warning: passing arguments to 'cast_spell' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | result = cast_spell("Recite which prayer?", item_val, &choice, &chance); | ^ prayer.c:45:11: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 45 | msg_print("You don't know any prayers in that book."); | ^ prayer.c:51:15: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | if (randint(100) < chance) | ^ prayer.c:52:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | msg_print("You lost your concentration!"); | ^ prayer.c:62:29: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | (void) hp_player(damroll(3, 3)); | ^ prayer.c:62:21: warning: passing arguments to 'hp_player' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | (void) hp_player(damroll(3, 3)); | ^ prayer.c:65:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 65 | bless(randint(12)+12); | ^ prayer.c:65:10: warning: passing arguments to 'bless' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 65 | bless(randint(12)+12); | ^ prayer.c:71:22: warning: passing arguments to 'light_area' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | (void) light_area(char_row, char_col); | ^ prayer.c:83:16: warning: passing arguments to 'get_dir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | if (get_dir(CNIL, &dir)) | ^ prayer.c:84:29: warning: passing arguments to 'confuse_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | (void) confuse_monster(dir, char_row, char_col); | ^ prayer.c:87:13: warning: passing arguments to 'teleport' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | teleport((int)(py.misc.lev*3)); | ^ prayer.c:90:29: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | (void) hp_player(damroll(4, 4)); | ^ prayer.c:90:21: warning: passing arguments to 'hp_player' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | (void) hp_player(damroll(4, 4)); | ^ prayer.c:93:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 93 | bless(randint(24)+24); | ^ prayer.c:93:10: warning: passing arguments to 'bless' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 93 | bless(randint(24)+24); | ^ prayer.c:96:27: warning: passing arguments to 'sleep_monsters1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | (void) sleep_monsters1(char_row, char_col); | ^ prayer.c:117:34: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | f_ptr->resist_heat += randint(10) + 10; | ^ prayer.c:118:34: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | f_ptr->resist_cold += randint(10) + 10; | ^ prayer.c:124:16: warning: passing arguments to 'get_dir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | if (get_dir(CNIL, &dir)) | ^ prayer.c:126:23: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | (int)(damroll(3, 6)+py.misc.lev), | ^ prayer.c:125:16: warning: passing arguments to 'fire_ball' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | fire_ball(GF_HOLY_ORB, dir, char_row, char_col, | ^ prayer.c:130:29: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | (void) hp_player(damroll(8, 4)); | ^ prayer.c:130:21: warning: passing arguments to 'hp_player' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | (void) hp_player(damroll(8, 4)); | ^ prayer.c:133:24: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 133 | detect_inv2(randint(24)+24); | ^ prayer.c:133:16: warning: passing arguments to 'detect_inv2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 133 | detect_inv2(randint(24)+24); | ^ prayer.c:145:29: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | (void) hp_player(damroll(16, 4)); | ^ prayer.c:145:21: warning: passing arguments to 'hp_player' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | (void) hp_player(damroll(16, 4)); | ^ prayer.c:151:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 151 | bless(randint(48)+48); | ^ prayer.c:151:10: warning: passing arguments to 'bless' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 151 | bless(randint(48)+48); | ^ prayer.c:154:27: warning: passing arguments to 'dispel_creature' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 154 | (void) dispel_creature(CD_UNDEAD, (int)(3*py.misc.lev)); | ^ prayer.c:157:21: warning: passing arguments to 'hp_player' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 157 | (void) hp_player(200); | ^ prayer.c:160:27: warning: passing arguments to 'dispel_creature' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 160 | (void) dispel_creature(CD_EVIL, (int)(3*py.misc.lev)); | ^ prayer.c:168:21: warning: passing arguments to 'hp_player' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 168 | (void) hp_player(1000); | ^ prayer.c:170:22: warning: passing arguments to 'res_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | (void) res_stat(i); | ^ prayer.c:171:27: warning: passing arguments to 'dispel_creature' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 171 | (void) dispel_creature(CD_EVIL, (int)(4*py.misc.lev)); | ^ prayer.c:198:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 198 | msg_print("You faint from fatigue!"); | ^ prayer.c:200:14: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 200 | randint((int)(5 * (s_ptr->smana-m_ptr->cmana))); | ^ prayer.c:203:16: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 203 | if (randint(3) == 1) | ^ prayer.c:205:18: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 205 | msg_print("You have damaged your health!"); | ^ prayer.c:206:25: warning: passing arguments to 'dec_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 206 | (void) dec_stat (A_CON); | ^ 51 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c save.c In file included from save.c:58: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from save.c:58: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ save.c:179:12: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 179 | wr_short((int16u)i); | ^ save.c:180:11: warning: passing arguments to 'wr_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 180 | wr_long(r_ptr->r_cmove); | ^ save.c:181:11: warning: passing arguments to 'wr_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 181 | wr_long(r_ptr->r_spells); | ^ save.c:182:12: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | wr_short(r_ptr->r_kills); | ^ save.c:183:12: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 183 | wr_short(r_ptr->r_deaths); | ^ save.c:184:12: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 184 | wr_short(r_ptr->r_cdefense); | ^ save.c:185:11: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 185 | wr_byte(r_ptr->r_wake); | ^ save.c:186:11: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 186 | wr_byte(r_ptr->r_ignore); | ^ save.c:187:12: warning: passing arguments to 'wr_bytes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 187 | wr_bytes(r_ptr->r_attacks, MAX_MON_NATTACK); | ^ save.c:190:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 190 | wr_short((int16u)0xFFFF); /* sentinel to indicate no more monster info */ | ^ save.c:192:10: warning: passing arguments to 'wr_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 192 | wr_long(l); | ^ save.c:195:12: warning: passing arguments to 'wr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 195 | wr_string(m_ptr->name); | ^ save.c:196:10: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 196 | wr_byte(m_ptr->male); | ^ save.c:197:10: warning: passing arguments to 'wr_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 197 | wr_long((int32u)m_ptr->au); | ^ save.c:198:10: warning: passing arguments to 'wr_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 198 | wr_long((int32u)m_ptr->max_exp); | ^ save.c:199:10: warning: passing arguments to 'wr_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 199 | wr_long((int32u)m_ptr->exp); | ^ save.c:200:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 200 | wr_short(m_ptr->exp_frac); | ^ save.c:201:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 201 | wr_short(m_ptr->age); | ^ save.c:202:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 202 | wr_short(m_ptr->ht); | ^ save.c:203:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 203 | wr_short(m_ptr->wt); | ^ save.c:204:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 204 | wr_short(m_ptr->lev); | ^ save.c:205:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 205 | wr_short(m_ptr->max_dlv); | ^ save.c:206:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 206 | wr_short((int16u)m_ptr->srh); | ^ save.c:207:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 207 | wr_short((int16u)m_ptr->fos); | ^ save.c:208:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 208 | wr_short((int16u)m_ptr->bth); | ^ save.c:209:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 209 | wr_short((int16u)m_ptr->bthb); | ^ save.c:210:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 210 | wr_short((int16u)m_ptr->mana); | ^ save.c:211:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 211 | wr_short((int16u)m_ptr->mhp); | ^ save.c:212:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 212 | wr_short((int16u)m_ptr->ptohit); | ^ save.c:213:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 213 | wr_short((int16u)m_ptr->ptodam); | ^ save.c:214:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 214 | wr_short((int16u)m_ptr->pac); | ^ save.c:215:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 215 | wr_short((int16u)m_ptr->ptoac); | ^ save.c:216:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 216 | wr_short((int16u)m_ptr->dis_th); | ^ save.c:217:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 217 | wr_short((int16u)m_ptr->dis_td); | ^ save.c:218:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 218 | wr_short((int16u)m_ptr->dis_ac); | ^ save.c:219:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 219 | wr_short((int16u)m_ptr->dis_tac); | ^ save.c:220:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 220 | wr_short((int16u)m_ptr->disarm); | ^ save.c:221:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | wr_short((int16u)m_ptr->save); | ^ save.c:222:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 222 | wr_short((int16u)m_ptr->sc); | ^ save.c:223:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 223 | wr_short((int16u)m_ptr->stl); | ^ save.c:224:10: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 224 | wr_byte(m_ptr->pclass); | ^ save.c:225:10: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 225 | wr_byte(m_ptr->prace); | ^ save.c:226:10: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 226 | wr_byte(m_ptr->hitdie); | ^ save.c:227:10: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 227 | wr_byte(m_ptr->expfact); | ^ save.c:228:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 228 | wr_short((int16u)m_ptr->cmana); | ^ save.c:229:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 229 | wr_short(m_ptr->cmana_frac); | ^ save.c:230:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 230 | wr_short((int16u)m_ptr->chp); | ^ save.c:231:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 231 | wr_short(m_ptr->chp_frac); | ^ save.c:233:15: warning: passing arguments to 'wr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 233 | wr_string (m_ptr->history[i]); | ^ save.c:236:11: warning: passing arguments to 'wr_bytes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 236 | wr_bytes(s_ptr->max_stat, 6); | ^ save.c:237:11: warning: passing arguments to 'wr_bytes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 237 | wr_bytes(s_ptr->cur_stat, 6); | ^ save.c:238:12: warning: passing arguments to 'wr_shorts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 238 | wr_shorts((int16u *)s_ptr->mod_stat, 6); | ^ save.c:239:11: warning: passing arguments to 'wr_bytes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 239 | wr_bytes(s_ptr->use_stat, 6); | ^ save.c:242:10: warning: passing arguments to 'wr_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 242 | wr_long(f_ptr->status); | ^ save.c:243:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 243 | wr_short((int16u)f_ptr->rest); | ^ save.c:244:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 244 | wr_short((int16u)f_ptr->blind); | ^ save.c:245:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 245 | wr_short((int16u)f_ptr->paralysis); | ^ save.c:246:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 246 | wr_short((int16u)f_ptr->confused); | ^ save.c:247:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 247 | wr_short((int16u)f_ptr->food); | ^ save.c:248:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 248 | wr_short((int16u)f_ptr->food_digested); | ^ save.c:249:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 249 | wr_short((int16u)f_ptr->protection); | ^ save.c:250:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 250 | wr_short((int16u)f_ptr->speed); | ^ save.c:251:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 251 | wr_short((int16u)f_ptr->fast); | ^ save.c:252:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 252 | wr_short((int16u)f_ptr->slow); | ^ save.c:253:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 253 | wr_short((int16u)f_ptr->afraid); | ^ save.c:254:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 254 | wr_short((int16u)f_ptr->poisoned); | ^ save.c:255:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 255 | wr_short((int16u)f_ptr->image); | ^ save.c:256:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 256 | wr_short((int16u)f_ptr->protevil); | ^ save.c:257:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 257 | wr_short((int16u)f_ptr->invuln); | ^ save.c:258:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 258 | wr_short((int16u)f_ptr->hero); | ^ save.c:259:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 259 | wr_short((int16u)f_ptr->shero); | ^ save.c:260:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 260 | wr_short((int16u)f_ptr->blessed); | ^ save.c:261:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 261 | wr_short((int16u)f_ptr->resist_heat); | ^ save.c:262:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 262 | wr_short((int16u)f_ptr->resist_cold); | ^ save.c:263:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 263 | wr_short((int16u)f_ptr->detect_inv); | ^ save.c:264:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 264 | wr_short((int16u)f_ptr->word_recall); | ^ save.c:265:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 265 | wr_short((int16u)f_ptr->see_infra); | ^ save.c:266:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 266 | wr_short((int16u)f_ptr->tim_infra); | ^ save.c:267:10: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 267 | wr_byte(f_ptr->see_inv); | ^ save.c:268:10: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 268 | wr_byte(f_ptr->teleport); | ^ save.c:269:10: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 269 | wr_byte(f_ptr->free_act); | ^ save.c:270:10: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 270 | wr_byte(f_ptr->slow_digest); | ^ save.c:271:10: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 271 | wr_byte(f_ptr->aggravate); | ^ save.c:272:10: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 272 | wr_byte(f_ptr->fire_resist); | ^ save.c:273:10: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 273 | wr_byte(f_ptr->cold_resist); | ^ save.c:274:10: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 274 | wr_byte(f_ptr->acid_resist); | ^ save.c:275:10: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 275 | wr_byte(f_ptr->regenerate); | ^ save.c:276:10: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 276 | wr_byte(f_ptr->lght_resist); | ^ save.c:277:10: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 277 | wr_byte(f_ptr->ffall); | ^ save.c:278:10: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 278 | wr_byte(f_ptr->sustain_str); | ^ save.c:279:10: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 279 | wr_byte(f_ptr->sustain_int); | ^ save.c:280:10: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 280 | wr_byte(f_ptr->sustain_wis); | ^ save.c:281:10: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 281 | wr_byte(f_ptr->sustain_con); | ^ save.c:282:10: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 282 | wr_byte(f_ptr->sustain_dex); | ^ save.c:283:10: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 283 | wr_byte(f_ptr->sustain_chr); | ^ save.c:284:10: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 284 | wr_byte(f_ptr->confuse_monster); | ^ save.c:285:10: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 285 | wr_byte(f_ptr->new_spells); | ^ save.c:287:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 287 | wr_short((int16u)missile_ctr); | ^ save.c:288:10: warning: passing arguments to 'wr_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 288 | wr_long((int32u)turn); | ^ save.c:289:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 289 | wr_short((int16u)inven_ctr); | ^ save.c:291:12: warning: passing arguments to 'wr_item' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 291 | wr_item(&inventory[i]); | ^ save.c:293:12: warning: passing arguments to 'wr_item' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 293 | wr_item(&inventory[i]); | ^ save.c:294:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 294 | wr_short((int16u)inven_weight); | ^ save.c:295:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 295 | wr_short((int16u)equip_ctr); | ^ save.c:296:10: warning: passing arguments to 'wr_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 296 | wr_long(spell_learned); | ^ save.c:297:10: warning: passing arguments to 'wr_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 297 | wr_long(spell_worked); | ^ save.c:298:10: warning: passing arguments to 'wr_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 298 | wr_long(spell_forgotten); | ^ save.c:299:11: warning: passing arguments to 'wr_bytes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 299 | wr_bytes(spell_order, 32); | ^ save.c:300:11: warning: passing arguments to 'wr_bytes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 300 | wr_bytes(object_ident, OBJECT_IDENT_SIZE); | ^ save.c:301:10: warning: passing arguments to 'wr_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 301 | wr_long(randes_seed); | ^ save.c:302:10: warning: passing arguments to 'wr_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 302 | wr_long(town_seed); | ^ save.c:303:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 303 | wr_short((int16u)last_msg); | ^ save.c:305:14: warning: passing arguments to 'wr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 305 | wr_string(old_msg[i]); | ^ save.c:308:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 308 | wr_short((int16u)panic_save); | ^ save.c:309:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 309 | wr_short((int16u)total_winner); | ^ save.c:310:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 310 | wr_short((int16u)noscore); | ^ save.c:311:12: warning: passing arguments to 'wr_shorts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 311 | wr_shorts(player_hp, MAX_PLAYER_LEVEL); | ^ save.c:316:14: warning: passing arguments to 'wr_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 316 | wr_long((int32u)st_ptr->store_open); | ^ save.c:317:15: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 317 | wr_short((int16u)st_ptr->insult_cur); | ^ save.c:318:14: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 318 | wr_byte(st_ptr->owner); | ^ save.c:319:14: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 319 | wr_byte(st_ptr->store_ctr); | ^ save.c:320:15: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 320 | wr_short(st_ptr->good_buy); | ^ save.c:321:15: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 321 | wr_short(st_ptr->bad_buy); | ^ save.c:324:11: warning: passing arguments to 'wr_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 324 | wr_long((int32u)st_ptr->store_inven[j].scost); | ^ save.c:325:11: warning: passing arguments to 'wr_item' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 325 | wr_item(&st_ptr->store_inven[j].sitem); | ^ save.c:337:10: warning: passing arguments to 'wr_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 337 | wr_long(l); | ^ save.c:340:12: warning: passing arguments to 'wr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 340 | wr_string(died_from); | ^ save.c:344:11: warning: passing arguments to 'wr_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 344 | wr_long (l); | ^ save.c:347:11: warning: passing arguments to 'wr_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 347 | wr_long ((int32u) birth_date); | ^ save.c:358:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 358 | wr_short((int16u)dun_level); | ^ save.c:359:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 359 | wr_short((int16u)char_row); | ^ save.c:360:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 360 | wr_short((int16u)char_col); | ^ save.c:361:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 361 | wr_short((int16u)mon_tot_mult); | ^ save.c:362:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 362 | wr_short((int16u)cur_height); | ^ save.c:363:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 363 | wr_short((int16u)cur_width); | ^ save.c:364:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 364 | wr_short((int16u)max_panel_rows); | ^ save.c:365:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 365 | wr_short((int16u)max_panel_cols); | ^ save.c:373:13: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 373 | wr_byte((int8u)i); | ^ save.c:374:13: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 374 | wr_byte((int8u)j); | ^ save.c:375:13: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 375 | wr_byte(c_ptr->cptr); | ^ save.c:378:10: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 378 | wr_byte((int8u)0xFF); /* marks end of cptr info */ | ^ save.c:385:13: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 385 | wr_byte((int8u)i); | ^ save.c:386:13: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 386 | wr_byte((int8u)j); | ^ save.c:387:13: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 387 | wr_byte(c_ptr->tptr); | ^ save.c:390:10: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 390 | wr_byte((int8u)0xFF); /* marks end of tptr info */ | ^ save.c:403:13: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 403 | wr_byte((int8u)count); | ^ save.c:404:13: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 404 | wr_byte(prev_char); | ^ save.c:412:10: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 412 | wr_byte((int8u)count); | ^ save.c:413:10: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 413 | wr_byte(prev_char); | ^ save.c:436:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 436 | wr_short((int16u)tcptr); | ^ save.c:438:12: warning: passing arguments to 'wr_item' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 438 | wr_item(&t_list[i]); | ^ save.c:439:11: warning: passing arguments to 'wr_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 439 | wr_short((int16u)mfptr); | ^ save.c:441:15: warning: passing arguments to 'wr_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 441 | wr_monster(&m_list[i]); | ^ save.c:509:21: warning: passing arguments to '_save_char' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 509 | while (!_save_char(savefile)) | ^ save.c:512:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 512 | msg_print(temp); | ^ save.c:515:16: warning: passing arguments to 'get_check' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 515 | || get_check("File exists. Delete old savefile?") == 0 | ^ save.c:521:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 521 | msg_print(temp); | ^ save.c:523:7: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 523 | prt("New Savefile [ESC to give up]:", 0, 0); | ^ save.c:524:19: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 524 | if (!get_string(temp, 0, 31, 45)) | ^ save.c:530:10: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 530 | prt(temp, 0, 0); | ^ save.c:551:11: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 551 | disturb (1, 0); /* Turn off resting and searching. */ | ^ save.c:552:15: warning: passing arguments to 'change_speed' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 552 | change_speed(-pack_heavy); /* Fix the speed */ | ^ save.c:567:12: warning: passing arguments to 'topen' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 567 | fd = open(fnam, O_RDWR|O_CREAT|O_EXCL, 0600); | ^ save.c:570:28: warning: passing arguments to 'get_check' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 570 | (wizard && get_check("Can't make new savefile. Overwrite old?")))) | ^ save.c:573:16: warning: passing arguments to 'topen' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 573 | fd = open(fnam, O_RDWR|O_TRUNC, 0600); | ^ save.c:584:22: warning: passing arguments to 'tfopen' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 584 | fileptr = fopen(savefile, "w"); | ^ save.c:594:14: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 594 | wr_byte((int8u)CUR_VERSION_MAJ); | ^ save.c:596:14: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 596 | wr_byte((int8u)CUR_VERSION_MIN); | ^ save.c:598:14: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 598 | wr_byte((int8u)PATCH_LEVEL); | ^ save.c:600:25: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 600 | char_tmp = randint(256) - 1; | ^ save.c:601:14: warning: passing arguments to 'wr_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 601 | wr_byte(char_tmp); | ^ save.c:625:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 625 | msg_print(temp); | ^ save.c:539:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 539 | int _save_char(fnam) | ^ In file included from save.c:58: ./externs.h:1117:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1117 | int _save_char(); | ^ save.c:700:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 700 | msg_print("Savefile does not exist."); | ^ save.c:708:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 708 | put_buffer(temp, 23, 0); | ^ save.c:711:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 711 | msg_print("IMPOSSIBLE! Attempt to restore while still alive!"); | ^ save.c:722:22: warning: passing arguments to 'topen' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 722 | else if ((fd = open(savefile, O_RDONLY, 0)) < 0 | ^ save.c:724:19: warning: passing arguments to 'topen' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 724 | (fd = open(savefile, O_RDONLY, 0)) < 0)) | ^ save.c:727:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 727 | msg_print("Can't open file for reading."); | ^ save.c:739:22: warning: passing arguments to 'tfopen' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 739 | fileptr = fopen(savefile, "r"); | ^ save.c:748:10: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 748 | prt("Restoring Memory...", 0, 0); | ^ save.c:755:14: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 755 | rd_byte(&version_maj); | ^ save.c:757:14: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 757 | rd_byte(&version_min); | ^ save.c:759:14: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 759 | rd_byte(&patch_level); | ^ save.c:761:14: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 761 | rd_byte(&xor_byte); | ^ save.c:775:7: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 775 | prt("Sorry. This savefile is from a different version of umoria.", | ^ save.c:780:15: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 780 | rd_short(&int16u_tmp); | ^ save.c:786:11: warning: passing arguments to 'rd_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 786 | rd_long(&r_ptr->r_cmove); | ^ save.c:787:11: warning: passing arguments to 'rd_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 787 | rd_long(&r_ptr->r_spells); | ^ save.c:788:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 788 | rd_short(&r_ptr->r_kills); | ^ save.c:789:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 789 | rd_short(&r_ptr->r_deaths); | ^ save.c:790:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 790 | rd_short(&r_ptr->r_cdefense); | ^ save.c:791:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 791 | rd_byte(&r_ptr->r_wake); | ^ save.c:792:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 792 | rd_byte(&r_ptr->r_ignore); | ^ save.c:793:12: warning: passing arguments to 'rd_bytes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 793 | rd_bytes(r_ptr->r_attacks, MAX_MON_NATTACK); | ^ save.c:794:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 794 | rd_short(&int16u_tmp); | ^ save.c:799:10: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 799 | rd_short(&int16u_tmp); | ^ save.c:800:14: warning: passing arguments to 'rd_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 800 | rd_long(&l); | ^ save.c:859:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 859 | msg_print ("Sorry, this character is retired from moria."); | ^ save.c:860:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 860 | msg_print ("You can not resurrect a retired character."); | ^ save.c:863:21: warning: passing arguments to 'get_check' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 863 | && get_check("Resurrect a dead character?")) | ^ save.c:868:13: warning: passing arguments to 'rd_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 868 | rd_string(m_ptr->name); | ^ save.c:869:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 869 | rd_byte(&m_ptr->male); | ^ save.c:870:11: warning: passing arguments to 'rd_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 870 | rd_long((int32u *)&m_ptr->au); | ^ save.c:871:11: warning: passing arguments to 'rd_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 871 | rd_long((int32u *)&m_ptr->max_exp); | ^ save.c:872:11: warning: passing arguments to 'rd_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 872 | rd_long((int32u *)&m_ptr->exp); | ^ save.c:873:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 873 | rd_short(&m_ptr->exp_frac); | ^ save.c:874:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 874 | rd_short(&m_ptr->age); | ^ save.c:875:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 875 | rd_short(&m_ptr->ht); | ^ save.c:876:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 876 | rd_short(&m_ptr->wt); | ^ save.c:877:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 877 | rd_short(&m_ptr->lev); | ^ save.c:878:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 878 | rd_short(&m_ptr->max_dlv); | ^ save.c:879:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 879 | rd_short((int16u *)&m_ptr->srh); | ^ save.c:880:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 880 | rd_short((int16u *)&m_ptr->fos); | ^ save.c:881:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 881 | rd_short((int16u *)&m_ptr->bth); | ^ save.c:882:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 882 | rd_short((int16u *)&m_ptr->bthb); | ^ save.c:883:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 883 | rd_short((int16u *)&m_ptr->mana); | ^ save.c:884:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 884 | rd_short((int16u *)&m_ptr->mhp); | ^ save.c:885:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 885 | rd_short((int16u *)&m_ptr->ptohit); | ^ save.c:886:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 886 | rd_short((int16u *)&m_ptr->ptodam); | ^ save.c:887:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 887 | rd_short((int16u *)&m_ptr->pac); | ^ save.c:888:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 888 | rd_short((int16u *)&m_ptr->ptoac); | ^ save.c:889:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 889 | rd_short((int16u *)&m_ptr->dis_th); | ^ save.c:890:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 890 | rd_short((int16u *)&m_ptr->dis_td); | ^ save.c:891:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 891 | rd_short((int16u *)&m_ptr->dis_ac); | ^ save.c:892:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 892 | rd_short((int16u *)&m_ptr->dis_tac); | ^ save.c:893:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 893 | rd_short((int16u *)&m_ptr->disarm); | ^ save.c:894:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 894 | rd_short((int16u *)&m_ptr->save); | ^ save.c:895:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 895 | rd_short((int16u *)&m_ptr->sc); | ^ save.c:896:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 896 | rd_short((int16u *)&m_ptr->stl); | ^ save.c:897:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 897 | rd_byte(&m_ptr->pclass); | ^ save.c:898:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 898 | rd_byte(&m_ptr->prace); | ^ save.c:899:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 899 | rd_byte(&m_ptr->hitdie); | ^ save.c:900:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 900 | rd_byte(&m_ptr->expfact); | ^ save.c:901:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 901 | rd_short((int16u *)&m_ptr->cmana); | ^ save.c:902:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 902 | rd_short(&m_ptr->cmana_frac); | ^ save.c:903:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 903 | rd_short((int16u *)&m_ptr->chp); | ^ save.c:904:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 904 | rd_short(&m_ptr->chp_frac); | ^ save.c:906:16: warning: passing arguments to 'rd_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 906 | rd_string (m_ptr->history[i]); | ^ save.c:909:12: warning: passing arguments to 'rd_bytes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 909 | rd_bytes(s_ptr->max_stat, 6); | ^ save.c:910:12: warning: passing arguments to 'rd_bytes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 910 | rd_bytes(s_ptr->cur_stat, 6); | ^ save.c:911:13: warning: passing arguments to 'rd_shorts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 911 | rd_shorts((int16u *)s_ptr->mod_stat, 6); | ^ save.c:912:12: warning: passing arguments to 'rd_bytes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 912 | rd_bytes(s_ptr->use_stat, 6); | ^ save.c:915:11: warning: passing arguments to 'rd_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 915 | rd_long(&f_ptr->status); | ^ save.c:916:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 916 | rd_short((int16u *)&f_ptr->rest); | ^ save.c:917:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 917 | rd_short((int16u *)&f_ptr->blind); | ^ save.c:918:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 918 | rd_short((int16u *)&f_ptr->paralysis); | ^ save.c:919:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 919 | rd_short((int16u *)&f_ptr->confused); | ^ save.c:920:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 920 | rd_short((int16u *)&f_ptr->food); | ^ save.c:921:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 921 | rd_short((int16u *)&f_ptr->food_digested); | ^ save.c:922:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 922 | rd_short((int16u *)&f_ptr->protection); | ^ save.c:923:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 923 | rd_short((int16u *)&f_ptr->speed); | ^ save.c:924:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 924 | rd_short((int16u *)&f_ptr->fast); | ^ save.c:925:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 925 | rd_short((int16u *)&f_ptr->slow); | ^ save.c:926:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 926 | rd_short((int16u *)&f_ptr->afraid); | ^ save.c:927:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 927 | rd_short((int16u *)&f_ptr->poisoned); | ^ save.c:928:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 928 | rd_short((int16u *)&f_ptr->image); | ^ save.c:929:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 929 | rd_short((int16u *)&f_ptr->protevil); | ^ save.c:930:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 930 | rd_short((int16u *)&f_ptr->invuln); | ^ save.c:931:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 931 | rd_short((int16u *)&f_ptr->hero); | ^ save.c:932:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 932 | rd_short((int16u *)&f_ptr->shero); | ^ save.c:933:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 933 | rd_short((int16u *)&f_ptr->blessed); | ^ save.c:934:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 934 | rd_short((int16u *)&f_ptr->resist_heat); | ^ save.c:935:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 935 | rd_short((int16u *)&f_ptr->resist_cold); | ^ save.c:936:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 936 | rd_short((int16u *)&f_ptr->detect_inv); | ^ save.c:937:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 937 | rd_short((int16u *)&f_ptr->word_recall); | ^ save.c:938:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 938 | rd_short((int16u *)&f_ptr->see_infra); | ^ save.c:939:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 939 | rd_short((int16u *)&f_ptr->tim_infra); | ^ save.c:940:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 940 | rd_byte(&f_ptr->see_inv); | ^ save.c:941:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 941 | rd_byte(&f_ptr->teleport); | ^ save.c:942:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 942 | rd_byte(&f_ptr->free_act); | ^ save.c:943:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 943 | rd_byte(&f_ptr->slow_digest); | ^ save.c:944:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 944 | rd_byte(&f_ptr->aggravate); | ^ save.c:945:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 945 | rd_byte(&f_ptr->fire_resist); | ^ save.c:946:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 946 | rd_byte(&f_ptr->cold_resist); | ^ save.c:947:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 947 | rd_byte(&f_ptr->acid_resist); | ^ save.c:948:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 948 | rd_byte(&f_ptr->regenerate); | ^ save.c:949:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 949 | rd_byte(&f_ptr->lght_resist); | ^ save.c:950:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 950 | rd_byte(&f_ptr->ffall); | ^ save.c:951:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 951 | rd_byte(&f_ptr->sustain_str); | ^ save.c:952:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 952 | rd_byte(&f_ptr->sustain_int); | ^ save.c:953:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 953 | rd_byte(&f_ptr->sustain_wis); | ^ save.c:954:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 954 | rd_byte(&f_ptr->sustain_con); | ^ save.c:955:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 955 | rd_byte(&f_ptr->sustain_dex); | ^ save.c:956:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 956 | rd_byte(&f_ptr->sustain_chr); | ^ save.c:957:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 957 | rd_byte(&f_ptr->confuse_monster); | ^ save.c:958:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 958 | rd_byte(&f_ptr->new_spells); | ^ save.c:960:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 960 | rd_short((int16u *)&missile_ctr); | ^ save.c:961:11: warning: passing arguments to 'rd_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 961 | rd_long((int32u *)&turn); | ^ save.c:962:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 962 | rd_short((int16u *)&inven_ctr); | ^ save.c:966:13: warning: passing arguments to 'rd_item' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 966 | rd_item(&inventory[i]); | ^ save.c:968:13: warning: passing arguments to 'rd_item' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 968 | rd_item(&inventory[i]); | ^ save.c:969:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 969 | rd_short((int16u *)&inven_weight); | ^ save.c:970:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 970 | rd_short((int16u *)&equip_ctr); | ^ save.c:971:11: warning: passing arguments to 'rd_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 971 | rd_long(&spell_learned); | ^ save.c:972:11: warning: passing arguments to 'rd_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 972 | rd_long(&spell_worked); | ^ save.c:973:11: warning: passing arguments to 'rd_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 973 | rd_long(&spell_forgotten); | ^ save.c:974:12: warning: passing arguments to 'rd_bytes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 974 | rd_bytes(spell_order, 32); | ^ save.c:975:12: warning: passing arguments to 'rd_bytes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 975 | rd_bytes(object_ident, OBJECT_IDENT_SIZE); | ^ save.c:976:11: warning: passing arguments to 'rd_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 976 | rd_long(&randes_seed); | ^ save.c:977:11: warning: passing arguments to 'rd_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 977 | rd_long(&town_seed); | ^ save.c:978:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 978 | rd_short((int16u *)&last_msg); | ^ save.c:980:15: warning: passing arguments to 'rd_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 980 | rd_string(old_msg[i]); | ^ save.c:982:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 982 | rd_short((int16u *)&panic_save); | ^ save.c:983:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 983 | rd_short((int16u *)&total_winner); | ^ save.c:984:12: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 984 | rd_short((int16u *)&noscore); | ^ save.c:985:13: warning: passing arguments to 'rd_shorts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 985 | rd_shorts(player_hp, MAX_PLAYER_LEVEL); | ^ save.c:992:10: warning: passing arguments to 'rd_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 992 | rd_long((int32u *)&st_ptr->store_open); | ^ save.c:993:11: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 993 | rd_short((int16u *)&st_ptr->insult_cur); | ^ save.c:994:10: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 994 | rd_byte(&st_ptr->owner); | ^ save.c:995:10: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 995 | rd_byte(&st_ptr->store_ctr); | ^ save.c:996:11: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 996 | rd_short(&st_ptr->good_buy); | ^ save.c:997:11: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 997 | rd_short(&st_ptr->bad_buy); | ^ save.c:1002:14: warning: passing arguments to 'rd_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1002 | rd_long((int32u *)&st_ptr->store_inven[j].scost); | ^ save.c:1003:14: warning: passing arguments to 'rd_item' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1003 | rd_item(&st_ptr->store_inven[j].sitem); | ^ save.c:1009:13: warning: passing arguments to 'rd_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1009 | rd_long(&time_saved); | ^ save.c:1012:15: warning: passing arguments to 'rd_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1012 | rd_string(died_from); | ^ save.c:1016:14: warning: passing arguments to 'rd_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1016 | rd_long ((int32u *)&max_score); | ^ save.c:1022:14: warning: passing arguments to 'rd_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1022 | rd_long ((int32u *)&birth_date); | ^ save.c:1032:11: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1032 | prt("Attempting a resurrection!", 0, 0); | ^ save.c:1055:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1055 | msg_print("Restoring Memory of a departed spirit..."); | ^ save.c:1064:10: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1064 | prt("Restoring Character...", 0, 0); | ^ save.c:1070:15: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1070 | rd_short((int16u *)&dun_level); | ^ save.c:1071:15: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1071 | rd_short((int16u *)&char_row); | ^ save.c:1072:15: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1072 | rd_short((int16u *)&char_col); | ^ save.c:1073:15: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1073 | rd_short((int16u *)&mon_tot_mult); | ^ save.c:1074:15: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1074 | rd_short((int16u *)&cur_height); | ^ save.c:1075:15: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1075 | rd_short((int16u *)&cur_width); | ^ save.c:1076:15: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1076 | rd_short((int16u *)&max_panel_rows); | ^ save.c:1077:15: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1077 | rd_short((int16u *)&max_panel_cols); | ^ save.c:1080:14: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1080 | rd_byte(&char_tmp); | ^ save.c:1084:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1084 | rd_byte(&xchar); | ^ save.c:1085:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1085 | rd_byte(&char_tmp); | ^ save.c:1089:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1089 | rd_byte(&char_tmp); | ^ save.c:1092:14: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1092 | rd_byte(&char_tmp); | ^ save.c:1096:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1096 | rd_byte(&xchar); | ^ save.c:1097:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1097 | rd_byte(&char_tmp); | ^ save.c:1101:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1101 | rd_byte(&char_tmp); | ^ save.c:1108:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1108 | rd_byte(&count); | ^ save.c:1109:11: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1109 | rd_byte(&char_tmp); | ^ save.c:1126:15: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1126 | rd_short((int16u *)&tcptr); | ^ save.c:1130:9: warning: passing arguments to 'rd_item' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1130 | rd_item(&t_list[i]); | ^ save.c:1131:15: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1131 | rd_short((int16u *)&mfptr); | ^ save.c:1135:12: warning: passing arguments to 'rd_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1135 | rd_monster(&m_list[i]); | ^ save.c:1161:13: warning: passing arguments to 'rd_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1161 | rd_long((int32u *)&st_ptr->store_open); | ^ save.c:1162:14: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1162 | rd_short((int16u *)&st_ptr->insult_cur); | ^ save.c:1163:13: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1163 | rd_byte(&st_ptr->owner); | ^ save.c:1164:13: warning: passing arguments to 'rd_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1164 | rd_byte(&st_ptr->store_ctr); | ^ save.c:1165:14: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1165 | rd_short(&st_ptr->good_buy); | ^ save.c:1166:14: warning: passing arguments to 'rd_short' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1166 | rd_short(&st_ptr->bad_buy); | ^ save.c:1171:10: warning: passing arguments to 'rd_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1171 | rd_long((int32u *)&st_ptr->store_inven[j].scost); | ^ save.c:1172:10: warning: passing arguments to 'rd_item' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1172 | rd_item(&st_ptr->store_inven[j].sitem); | ^ save.c:1180:9: warning: passing arguments to 'rd_long' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1180 | rd_long(&time_saved); | ^ save.c:1213:11: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1213 | msg_print("Error during reading of file."); | ^ save.c:1225:18: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1225 | msg_print (temp); | ^ save.c:1227:14: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] 1227 | else if ((!noscore & 0x04) && duplicate_character ()) | ^ ~ save.c:1227:14: note: add parentheses after the '!' to evaluate the bitwise operator first 1227 | else if ((!noscore & 0x04) && duplicate_character ()) | ^ | ( ) save.c:1227:14: note: add parentheses around left hand side expression to silence this warning 1227 | else if ((!noscore & 0x04) && duplicate_character ()) | ^ | ( ) save.c:1231:18: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1231 | msg_print (temp); | ^ save.c:1258:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1258 | msg_print("This save file cannot be used to get on the score board."); | ^ save.c:1269:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1269 | msg_print(temp); | ^ save.c:1279:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1279 | prt("Please try again without that savefile.", 1, 0); | ^ save.c:665:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 665 | int get_char(generate) | ^ In file included from save.c:58: ./externs.h:1118:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1118 | int get_char(); | ^ save.c:1290:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1290 | static void wr_byte(c) | ^ save.c:86:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 86 | static void wr_byte(); | ^ save.c:1298:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1298 | static void wr_short(s) | ^ save.c:87:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 87 | static void wr_short(); | ^ save.c:1309:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1309 | static void wr_long(l) | ^ save.c:88:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 88 | static void wr_long(); | ^ save.c:1326:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1326 | static void wr_bytes(c, count) | ^ save.c:89:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 89 | static void wr_bytes(); | ^ save.c:1345:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1345 | static void wr_string(str) | ^ save.c:90:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 90 | static void wr_string(); | ^ save.c:1361:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1361 | static void wr_shorts(s, count) | ^ save.c:91:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 91 | static void wr_shorts(); | ^ save.c:1382:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1382 | static void wr_item(item) | ^ save.c:92:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 92 | static void wr_item(); | ^ save.c:1406:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1406 | static void wr_monster(mon) | ^ save.c:93:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 93 | static void wr_monster(); | ^ save.c:1422:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1422 | static void rd_byte(ptr) | ^ save.c:94:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 94 | static void rd_byte(); | ^ save.c:1433:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1433 | static void rd_short(ptr) | ^ save.c:95:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 95 | static void rd_short(); | ^ save.c:1448:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1448 | static void rd_long(ptr) | ^ save.c:96:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 96 | static void rd_long(); | ^ save.c:1468:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1468 | static void rd_bytes(ch_ptr, count) | ^ save.c:97:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 97 | static void rd_bytes(); | ^ save.c:1488:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1488 | static void rd_string(str) | ^ save.c:98:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 98 | static void rd_string(); | ^ save.c:1506:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1506 | static void rd_shorts(ptr, count) | ^ save.c:99:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 99 | static void rd_shorts(); | ^ save.c:1530:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1530 | static void rd_item(item) | ^ save.c:100:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 100 | static void rd_item(); | ^ save.c:1554:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1554 | static void rd_monster(mon) | ^ save.c:101:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 101 | static void rd_monster(); | ^ save.c:1573:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1573 | void set_fileptr(file) | ^ In file included from save.c:58: ./externs.h:1120:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1120 | void set_fileptr(); | ^ save.c:1579:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1579 | void wr_highscore(score) | ^ In file included from save.c:58: ./externs.h:1122:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1122 | void wr_highscore(); | ^ save.c:1603:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1603 | void rd_highscore(score) | ^ In file included from save.c:58: ./externs.h:1123:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1123 | void rd_highscore(); | ^ 403 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c staffs.c In file included from staffs.c:12: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from staffs.c:12: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ staffs.c:32:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | msg_print("But you are not carrying anything."); | ^ staffs.c:33:23: warning: passing arguments to 'find_range' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 33 | else if (!find_range(TV_STAFF, TV_NEVER, &j, &k)) | ^ staffs.c:34:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | msg_print("You are not carrying any staffs."); | ^ staffs.c:35:20: warning: passing arguments to 'get_item' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 35 | else if (get_item(&item_val, "Use which staff?", j, k, CNIL, CNIL)) | ^ staffs.c:40:38: warning: passing arguments to 'stat_adj' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | chance = m_ptr->save + stat_adj(A_INT) - (int)i_ptr->level - 5 | ^ staffs.c:44:44: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | if ((chance < USE_DEVICE) && (randint(USE_DEVICE - chance + 1) == 1)) | ^ staffs.c:47:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | if (randint(chance) < USE_DEVICE) | ^ staffs.c:48:11: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | msg_print("You failed to use the staff properly."); | ^ staffs.c:56:19: warning: passing arguments to 'bit_pos' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | j = bit_pos(&i) + 1; | ^ staffs.c:61:23: warning: passing arguments to 'light_area' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | ident = light_area(char_row, char_col); | ^ staffs.c:76:13: warning: passing arguments to 'teleport' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | teleport(100); | ^ staffs.c:85:28: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | for (k = 0; k < randint(4); k++) | ^ staffs.c:89:32: warning: passing arguments to 'summon_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | ident |= summon_monster(&y, &x, FALSE); | ^ staffs.c:94:17: warning: passing arguments to 'destroy_area' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 94 | destroy_area(char_row, char_col); | ^ staffs.c:98:13: warning: passing arguments to 'starlite' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | starlite(char_row, char_col); | ^ staffs.c:101:27: warning: passing arguments to 'speed_monsters' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | ident = speed_monsters(1); | ^ staffs.c:104:27: warning: passing arguments to 'speed_monsters' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 104 | ident = speed_monsters(-1); | ^ staffs.c:110:30: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | ident = hp_player(randint(8)); | ^ staffs.c:110:22: warning: passing arguments to 'hp_player' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | ident = hp_player(randint(8)); | ^ staffs.c:118:29: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | py.flags.fast += randint(30) + 15; | ^ staffs.c:123:29: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | py.flags.slow += randint(30) + 15; | ^ staffs.c:132:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 132 | msg_print("The staff glows blue for a moment.."); | ^ staffs.c:145:28: warning: passing arguments to 'dispel_creature' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | ident = dispel_creature(CD_EVIL, 60); | ^ staffs.c:148:25: warning: passing arguments to 'unlight_area' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | ident = unlight_area(char_row, char_col); | ^ staffs.c:154:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 154 | msg_print("Internal error in staffs()"); | ^ staffs.c:161:21: warning: passing arguments to 'known1_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 161 | if (!known1_p(i_ptr)) | ^ staffs.c:169:13: warning: passing arguments to 'identify' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 169 | identify(&item_val); | ^ staffs.c:173:22: warning: passing arguments to 'known1_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 173 | else if (!known1_p(i_ptr)) | ^ staffs.c:174:13: warning: passing arguments to 'sample' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 174 | sample (i_ptr); | ^ staffs.c:175:16: warning: passing arguments to 'desc_charges' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | desc_charges(item_val); | ^ staffs.c:179:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 179 | msg_print("The staff has no charges left."); | ^ staffs.c:180:17: warning: passing arguments to 'known2_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 180 | if (!known2_p(i_ptr)) | ^ staffs.c:181:18: warning: passing arguments to 'add_inscribe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 181 | add_inscribe(i_ptr, ID_EMPTY); | ^ cc -DPREFIX=\"/usr/local\" -O2 -pipe -c wands.c 35 warnings generated. In file included from wands.c:12: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from wands.c:12: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ wands.c:33:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 33 | msg_print("But you are not carrying anything."); | ^ wands.c:34:23: warning: passing arguments to 'find_range' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | else if (!find_range(TV_WAND, TV_NEVER, &j, &k)) | ^ wands.c:35:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 35 | msg_print("You are not carrying any wands."); | ^ wands.c:36:20: warning: passing arguments to 'get_item' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | else if (get_item(&item_val, "Aim which wand?", j, k, CNIL, CNIL)) | ^ wands.c:40:18: warning: passing arguments to 'get_dir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | if (get_dir(CNIL, &dir)) | ^ wands.c:44:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | msg_print("You are confused."); | ^ wands.c:47:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | dir = randint(9); | ^ wands.c:53:35: warning: passing arguments to 'stat_adj' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | chance = m_ptr->save + stat_adj(A_INT) - (int)i_ptr->level | ^ wands.c:57:41: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | if ((chance < USE_DEVICE) && (randint(USE_DEVICE - chance + 1) == 1)) | ^ wands.c:60:15: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | if (randint(chance) < USE_DEVICE) | ^ wands.c:61:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | msg_print("You failed to use the wand properly."); | ^ wands.c:68:16: warning: passing arguments to 'bit_pos' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | j = bit_pos(&i) + 1; | ^ wands.c:75:18: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | msg_print("A line of blue shimmering light appears."); | ^ wands.c:76:19: warning: passing arguments to 'light_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | light_line(dir, char_row, char_col); | ^ wands.c:80:51: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | fire_bolt(GF_LIGHTNING, dir, k, l, damroll(4, 8), | ^ wands.c:80:18: warning: passing arguments to 'fire_bolt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | fire_bolt(GF_LIGHTNING, dir, k, l, damroll(4, 8), | ^ wands.c:85:47: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | fire_bolt(GF_FROST, dir, k, l, damroll(6, 8), | ^ wands.c:85:18: warning: passing arguments to 'fire_bolt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | fire_bolt(GF_FROST, dir, k, l, damroll(6, 8), | ^ wands.c:90:46: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | fire_bolt(GF_FIRE, dir, k, l, damroll(9, 8), | ^ wands.c:90:18: warning: passing arguments to 'fire_bolt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | fire_bolt(GF_FIRE, dir, k, l, damroll(9, 8), | ^ wands.c:95:28: warning: passing arguments to 'wall_to_mud' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | ident = wall_to_mud(dir, k, l); | ^ wands.c:98:29: warning: passing arguments to 'poly_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | ident = poly_monster(dir, k, l); | ^ wands.c:101:47: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | ident = hp_monster(dir, k, l, -damroll(4, 6)); | ^ wands.c:101:27: warning: passing arguments to 'hp_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | ident = hp_monster(dir, k, l, -damroll(4, 6)); | ^ wands.c:104:30: warning: passing arguments to 'speed_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 104 | ident = speed_monster(dir, k, l, 1); | ^ wands.c:107:30: warning: passing arguments to 'speed_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 107 | ident = speed_monster(dir, k, l, -1); | ^ wands.c:110:32: warning: passing arguments to 'confuse_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | ident = confuse_monster(dir, k, l); | ^ wands.c:113:30: warning: passing arguments to 'sleep_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 113 | ident = sleep_monster(dir, k, l); | ^ wands.c:116:27: warning: passing arguments to 'drain_life' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | ident = drain_life(dir, k, l); | ^ wands.c:119:28: warning: passing arguments to 'td_destroy2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | ident = td_destroy2(dir, k, l); | ^ wands.c:122:55: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | fire_bolt(GF_MAGIC_MISSILE, dir, k, l, damroll(2, 6), | ^ wands.c:122:18: warning: passing arguments to 'fire_bolt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | fire_bolt(GF_MAGIC_MISSILE, dir, k, l, damroll(2, 6), | ^ wands.c:127:27: warning: passing arguments to 'build_wall' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 127 | ident = build_wall(dir, k, l); | ^ wands.c:130:30: warning: passing arguments to 'clone_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | ident = clone_monster(dir, k, l); | ^ wands.c:133:33: warning: passing arguments to 'teleport_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 133 | ident = teleport_monster(dir, k, l); | ^ wands.c:136:27: warning: passing arguments to 'disarm_all' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 136 | ident = disarm_all(dir, k, l); | ^ wands.c:139:18: warning: passing arguments to 'fire_ball' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | fire_ball(GF_LIGHTNING, dir, k, l, 32, "Lightning Ball"); | ^ wands.c:143:18: warning: passing arguments to 'fire_ball' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | fire_ball(GF_FROST, dir, k, l, 48, "Cold Ball"); | ^ wands.c:147:18: warning: passing arguments to 'fire_ball' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 147 | fire_ball(GF_FIRE, dir, k, l, 72, spell_names[28]); | ^ wands.c:151:18: warning: passing arguments to 'fire_ball' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 151 | fire_ball(GF_POISON_GAS, dir, k, l, 12, spell_names[6]); | ^ wands.c:155:18: warning: passing arguments to 'fire_ball' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | fire_ball(GF_ACID, dir, k, l, 60, "Acid Ball"); | ^ wands.c:159:27: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 159 | i = 1L << (randint(23) - 1); | ^ wands.c:162:18: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 162 | msg_print("Internal error in wands()"); | ^ wands.c:169:18: warning: passing arguments to 'known1_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 169 | if (!known1_p(i_ptr)) | ^ wands.c:177:17: warning: passing arguments to 'identify' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 177 | identify(&item_val); | ^ wands.c:181:26: warning: passing arguments to 'known1_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 181 | else if (!known1_p(i_ptr)) | ^ wands.c:182:10: warning: passing arguments to 'sample' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | sample (i_ptr); | ^ wands.c:183:20: warning: passing arguments to 'desc_charges' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 183 | desc_charges(item_val); | ^ wands.c:187:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 187 | msg_print("The wand has no charges left."); | ^ wands.c:188:21: warning: passing arguments to 'known2_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 188 | if (!known2_p(i_ptr)) | ^ wands.c:189:15: warning: passing arguments to 'add_inscribe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 189 | add_inscribe(i_ptr, ID_EMPTY); | ^ 53 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c scrolls.c In file included from scrolls.c:16: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from scrolls.c:16: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ scrolls.c:40:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | msg_print("You can't see to read the scroll."); | ^ scrolls.c:42:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | msg_print("You have no light to read by."); | ^ scrolls.c:44:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | msg_print("You are too confused to read a scroll."); | ^ scrolls.c:46:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 46 | msg_print("You are not carrying anything!"); | ^ scrolls.c:47:23: warning: passing arguments to 'find_range' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | else if (!find_range(TV_SCROLL1, TV_SCROLL2, &j, &k)) | ^ scrolls.c:48:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | msg_print ("You are not carrying any scrolls!"); | ^ scrolls.c:49:20: warning: passing arguments to 'get_item' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | else if (get_item(&item_val, "Read which scroll?", j, k, CNIL, CNIL)) | ^ scrolls.c:59:15: warning: passing arguments to 'bit_pos' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | j = bit_pos(&i) + 1; | ^ scrolls.c:70:11: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | objdes(tmp_str, i_ptr, FALSE); | ^ scrolls.c:72:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | msg_print(out_val); | ^ scrolls.c:73:16: warning: passing arguments to 'enchant' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | if (enchant(&i_ptr->tohit, 10)) | ^ scrolls.c:83:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | msg_print("The enchantment fails."); | ^ scrolls.c:91:11: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | objdes(tmp_str, i_ptr, FALSE); | ^ scrolls.c:93:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 93 | msg_print(out_val); | ^ scrolls.c:99:16: warning: passing arguments to 'enchant' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | if (enchant(&i_ptr->todam, j)) | ^ scrolls.c:109:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | msg_print("The enchantment fails."); | ^ scrolls.c:130:35: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | if (k > 0) l = tmp[randint(k)-1]; | ^ scrolls.c:162:11: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 162 | objdes(tmp_str, i_ptr, FALSE); | ^ scrolls.c:164:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 164 | msg_print(out_val); | ^ scrolls.c:165:16: warning: passing arguments to 'enchant' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 165 | if (enchant(&i_ptr->toac, 10)) | ^ scrolls.c:175:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | msg_print("The enchantment fails."); | ^ scrolls.c:180:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 180 | msg_print("This is an identify scroll."); | ^ scrolls.c:197:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 197 | msg_print("You feel as if someone is watching over you."); | ^ scrolls.c:202:26: warning: passing arguments to 'light_area' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 202 | ident = light_area(char_row, char_col); | ^ scrolls.c:205:31: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 205 | for (k = 0; k < randint(3); k++) | ^ scrolls.c:209:28: warning: passing arguments to 'summon_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 209 | ident |= summon_monster(&y, &x, FALSE); | ^ scrolls.c:213:16: warning: passing arguments to 'teleport' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 213 | teleport(10); | ^ scrolls.c:217:16: warning: passing arguments to 'teleport' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 217 | teleport(100); | ^ scrolls.c:221:37: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | dun_level += (-3) + 2*randint(2); | ^ scrolls.c:230:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 230 | msg_print("Your hands begin to glow."); | ^ scrolls.c:240:31: warning: passing arguments to 'sleep_monsters1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 240 | ident = sleep_monsters1(char_row, char_col); | ^ scrolls.c:259:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 259 | msg_print("This is a mass genocide scroll."); | ^ scrolls.c:267:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 267 | msg_print("There is a high pitched humming noise."); | ^ scrolls.c:268:32: warning: passing arguments to 'aggravate_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 268 | (void) aggravate_monster(20); | ^ scrolls.c:281:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 281 | msg_print("This is a Recharge-Item scroll."); | ^ scrolls.c:283:26: warning: passing arguments to 'recharge' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 283 | used_up = recharge(60); | ^ scrolls.c:286:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 286 | msg_print("This is a genocide scroll."); | ^ scrolls.c:291:28: warning: passing arguments to 'unlight_area' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 291 | ident = unlight_area(char_row, char_col); | ^ scrolls.c:301:31: warning: passing arguments to 'dispel_creature' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 301 | ident = dispel_creature(CD_UNDEAD, 60); | ^ scrolls.c:307:11: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 307 | objdes(tmp_str, i_ptr, FALSE); | ^ scrolls.c:309:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 309 | msg_print(out_val); | ^ scrolls.c:311:28: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 311 | for (k = 0; k < randint(2); k++) | ^ scrolls.c:312:18: warning: passing arguments to 'enchant' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 312 | if (enchant(&i_ptr->tohit, 10)) | ^ scrolls.c:319:28: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 319 | for (k = 0; k < randint(2); k++) | ^ scrolls.c:320:18: warning: passing arguments to 'enchant' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 320 | if (enchant(&i_ptr->todam, j)) | ^ scrolls.c:332:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 332 | msg_print("The enchantment fails."); | ^ scrolls.c:340:11: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 340 | objdes(tmp_str, i_ptr, FALSE); | ^ scrolls.c:342:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 342 | msg_print(out_val); | ^ scrolls.c:343:17: warning: passing arguments to 'unmagic_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 343 | unmagic_name(i_ptr); | ^ scrolls.c:344:28: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 344 | i_ptr->tohit = -randint(5) - randint(5); | ^ scrolls.c:344:41: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 344 | i_ptr->tohit = -randint(5) - randint(5); | ^ scrolls.c:345:28: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 345 | i_ptr->todam = -randint(5) - randint(5); | ^ scrolls.c:345:41: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 345 | i_ptr->todam = -randint(5) - randint(5); | ^ scrolls.c:350:15: warning: passing arguments to 'py_bonuses' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 350 | py_bonuses(i_ptr, -1); | ^ scrolls.c:373:35: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 373 | if (k > 0) l = tmp[randint(k)-1]; | ^ scrolls.c:405:11: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 405 | objdes(tmp_str, i_ptr, FALSE); | ^ scrolls.c:407:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 407 | msg_print(out_val); | ^ scrolls.c:409:28: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 409 | for (k = 0; k < randint(2) + 1; k++) | ^ scrolls.c:410:18: warning: passing arguments to 'enchant' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 410 | if (enchant(&i_ptr->toac, 10)) | ^ scrolls.c:422:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 422 | msg_print("The enchantment fails."); | ^ scrolls.c:428:16: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 428 | && (randint(4) == 1)) | ^ scrolls.c:431:21: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 431 | && (randint(3) ==1)) | ^ scrolls.c:434:21: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 434 | && (randint(3) ==1)) | ^ scrolls.c:437:21: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 437 | && (randint(3) ==1)) | ^ scrolls.c:440:21: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 440 | && (randint(3) ==1)) | ^ scrolls.c:443:21: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 443 | && (randint(3) ==1)) | ^ scrolls.c:463:11: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 463 | objdes(tmp_str, i_ptr, FALSE); | ^ scrolls.c:465:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 465 | msg_print(out_val); | ^ scrolls.c:466:17: warning: passing arguments to 'unmagic_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 466 | unmagic_name(i_ptr); | ^ scrolls.c:470:27: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 470 | i_ptr->toac = -randint(5) - randint(5); | ^ scrolls.c:470:40: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 470 | i_ptr->toac = -randint(5) - randint(5); | ^ scrolls.c:477:31: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 477 | for (k = 0; k < randint(3); k++) | ^ scrolls.c:481:27: warning: passing arguments to 'summon_undead' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 481 | ident |= summon_undead(&y, &x); | ^ scrolls.c:486:21: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 486 | bless(randint(12)+6); | ^ scrolls.c:486:13: warning: passing arguments to 'bless' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 486 | bless(randint(12)+6); | ^ scrolls.c:490:21: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 490 | bless(randint(24)+12); | ^ scrolls.c:490:13: warning: passing arguments to 'bless' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 490 | bless(randint(24)+12); | ^ scrolls.c:494:21: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 494 | bless(randint(48)+24); | ^ scrolls.c:494:13: warning: passing arguments to 'bless' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 494 | bless(randint(48)+24); | ^ scrolls.c:499:38: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 499 | py.flags.word_recall = 25 + randint(30); | ^ scrolls.c:500:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 500 | msg_print("The air about you becomes charged."); | ^ scrolls.c:503:20: warning: passing arguments to 'destroy_area' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 503 | destroy_area(char_row, char_col); | ^ scrolls.c:507:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 507 | msg_print("Internal error in scroll()"); | ^ scrolls.c:515:17: warning: passing arguments to 'known1_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 515 | if (!known1_p(i_ptr)) | ^ scrolls.c:522:16: warning: passing arguments to 'identify' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 522 | identify(&item_val); | ^ scrolls.c:526:25: warning: passing arguments to 'known1_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 526 | else if (!known1_p(i_ptr)) | ^ scrolls.c:527:9: warning: passing arguments to 'sample' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 527 | sample (i_ptr); | ^ scrolls.c:530:15: warning: passing arguments to 'desc_remain' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 530 | desc_remain(item_val); | ^ scrolls.c:531:17: warning: passing arguments to 'inven_destroy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 531 | inven_destroy(item_val); | ^ 91 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c spells.c In file included from spells.c:17: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from spells.c:17: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ spells.c:38:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | void monster_name (m_name, m_ptr, r_ptr) | ^ In file included from spells.c:17: ./externs.h:1160:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1160 | void monster_name(); | ^ spells.c:49:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | void lower_monster_name (m_name, m_ptr, r_ptr) | ^ In file included from spells.c:17: ./externs.h:1161:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1161 | void lower_monster_name(); | ^ spells.c:82:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | if ((randint(MAX_MONS_LEVEL) < r_ptr->level) || | ^ spells.c:88:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | msg_print(out_val); | ^ spells.c:95:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | msg_print(out_val); | ^ spells.c:61:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | int sleep_monsters1(y, x) | ^ In file included from spells.c:17: ./externs.h:1162:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1162 | int sleep_monsters1(); | ^ spells.c:114:17: warning: passing arguments to 'test_light' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | !test_light(i, j)) | ^ spells.c:117:15: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | lite_spot(i, j); | ^ spells.c:137:20: warning: passing arguments to 'test_light' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 137 | && !test_light(i, j)) | ^ spells.c:140:15: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 140 | lite_spot(i, j); | ^ spells.c:165:19: warning: passing arguments to 'change_trap' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 165 | change_trap(i, j); | ^ spells.c:171:14: warning: passing arguments to 'known2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 171 | known2(t_ptr); | ^ spells.c:168:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] 168 | else if (t_list[c_ptr->tptr].tval == TV_CHEST) | ^ spells.c:194:19: warning: passing arguments to 'change_trap' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 194 | change_trap(i, j); | ^ spells.c:203:17: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 203 | lite_spot(i, j); | ^ spells.c:198:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] 198 | else if (((t_list[c_ptr->tptr].tval == TV_UP_STAIR) || | ^ spells.c:224:25: warning: passing arguments to 'panel_contains' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 224 | if (panel_contains((int)m_ptr->fy, (int)m_ptr->fx) && | ^ spells.c:233:9: warning: passing arguments to 'print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 233 | print((char)c_list[m_ptr->mptr].cchar, (int)m_ptr->fy, | ^ spells.c:240:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 240 | msg_print("You sense the presence of invisible creatures!"); | ^ spells.c:241:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 241 | msg_print(CNIL); | ^ spells.c:243:16: warning: passing arguments to 'creatures' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 243 | creatures(FALSE); | ^ spells.c:257:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 257 | msg_print("You are surrounded by a white light."); | ^ spells.c:260:15: warning: passing arguments to 'light_room' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 260 | light_room(y, x); | ^ spells.c:267:11: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 267 | lite_spot(i, j); | ^ spells.c:251:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 251 | int light_area(y, x) | ^ In file included from spells.c:17: ./externs.h:1168:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1168 | int light_area(); | ^ spells.c:300:15: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 300 | lite_spot (i, j); | ^ spells.c:301:20: warning: passing arguments to 'test_light' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 301 | if (!test_light(i, j)) | ^ spells.c:321:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 321 | msg_print("Darkness surrounds you."); | ^ spells.c:274:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 274 | int unlight_area(y, x) | ^ In file included from spells.c:17: ./externs.h:1169:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1169 | int unlight_area(); | ^ spells.c:334:30: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 334 | i = panel_row_min - randint(10); | ^ spells.c:335:30: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 335 | j = panel_row_max + randint(10); | ^ spells.c:336:30: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 336 | k = panel_col_min - randint(20); | ^ spells.c:337:30: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 337 | l = panel_col_max + randint(20); | ^ spells.c:340:20: warning: passing arguments to 'in_bounds' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 340 | if (in_bounds(m, n) && (cave[m][n].fval <= MAX_CAVE_FLOOR)) | ^ spells.c:365:15: warning: passing arguments to 'get_item' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 365 | if (get_item(&item_val, "Item you wish identified?", 0, INVEN_ARRAY_SIZE, | ^ spells.c:369:15: warning: passing arguments to 'identify' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 369 | identify(&item_val); | ^ spells.c:371:13: warning: passing arguments to 'known2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 371 | known2(i_ptr); | ^ spells.c:372:13: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 372 | objdes(tmp_str, i_ptr, TRUE); | ^ spells.c:376:51: warning: passing arguments to 'describe_use' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 376 | (void) sprintf (out_val, "%s: %s", describe_use(item_val), tmp_str); | ^ spells.c:380:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 380 | msg_print(out_val); | ^ spells.c:405:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 405 | msg_print ("You hear a sudden stirring in the distance!"); | ^ spells.c:387:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 387 | int aggravate_monster (dis_affect) | ^ In file included from spells.c:17: ./externs.h:1172:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1172 | int aggravate_monster(); | ^ spells.c:430:28: warning: passing arguments to 'delete_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 430 | (void) delete_object(i, j); | ^ spells.c:431:30: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 431 | place_trap(i, j, randint(MAX_TRAP)-1); | ^ spells.c:431:16: warning: passing arguments to 'place_trap' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 431 | place_trap(i, j, randint(MAX_TRAP)-1); | ^ spells.c:435:15: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 435 | lite_spot(i, j); | ^ spells.c:459:23: warning: passing arguments to 'delete_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 459 | (void) delete_object(i, j); | ^ spells.c:463:15: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 463 | invcopy(&t_list[k], OBJ_CLOSED_DOOR); | ^ spells.c:464:17: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 464 | lite_spot(i, j); | ^ spells.c:489:20: warning: passing arguments to 'delete_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 489 | if (delete_object(i, j)) | ^ spells.c:498:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 498 | msg_print ("You have disarmed the chest."); | ^ spells.c:499:9: warning: passing arguments to 'known2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 499 | known2(&t_list[c_ptr->tptr]); | ^ spells.c:521:25: warning: passing arguments to 'panel_contains' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 521 | if (panel_contains((int)m_ptr->fy, (int)m_ptr->fx) && | ^ spells.c:530:9: warning: passing arguments to 'print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 530 | print((char)c_list[m_ptr->mptr].cchar, (int)m_ptr->fy, | ^ spells.c:537:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 537 | msg_print("You sense the presence of monsters!"); | ^ spells.c:538:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 538 | msg_print(CNIL); | ^ spells.c:540:16: warning: passing arguments to 'creatures' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 540 | creatures(FALSE); | ^ spells.c:575:23: warning: passing arguments to 'panel_contains' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 575 | if (panel_contains(y, x)) | ^ spells.c:576:17: warning: passing arguments to 'light_room' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 576 | light_room(y, x); | ^ spells.c:579:12: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 579 | lite_spot(y, x); | ^ spells.c:588:19: warning: passing arguments to 'update_mon' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 588 | update_mon ((int)c_ptr->cptr); | ^ spells.c:594:47: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 594 | i = mon_take_hit((int)c_ptr->cptr, damroll(2, 8)); | ^ spells.c:594:21: warning: passing arguments to 'mon_take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 594 | i = mon_take_hit((int)c_ptr->cptr, damroll(2, 8)); | ^ spells.c:599:18: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 599 | msg_print(out_val); | ^ spells.c:606:19: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 606 | msg_print (out_val); | ^ spells.c:611:19: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 611 | (void) mmove(dir, &y, &x); | ^ spells.c:548:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 548 | void light_line(dir, y, x) | ^ In file included from spells.c:17: ./externs.h:1177:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1177 | void light_line(); | ^ spells.c:624:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 624 | msg_print("The end of the staff bursts into a blue shimmering light."); | ^ spells.c:618:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 618 | void starlite(y, x) | ^ In file included from spells.c:17: ./externs.h:1178:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1178 | void starlite(); | ^ spells.c:653:25: warning: passing arguments to 'delete_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 653 | if (delete_object(y, x)) | ^ spells.c:661:19: warning: passing arguments to 'change_trap' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 661 | change_trap(y, x); | ^ spells.c:666:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 666 | msg_print("Click!"); | ^ spells.c:670:14: warning: passing arguments to 'known2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 670 | known2(t_ptr); | ^ spells.c:673:19: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 673 | (void) mmove(dir, &y, &x); | ^ spells.c:632:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 632 | int disarm_all(dir, y, x) | ^ In file included from spells.c:17: ./externs.h:1179:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1179 | int disarm_all(); | ^ spells.c:724:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 724 | msg_print("ERROR in get_flags()\n"); | ^ spells.c:681:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 681 | void get_flags(typ, weapon_type, harm_type, destroy) | ^ In file included from spells.c:17: ./externs.h:1180:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1180 | void get_flags(); | ^ spells.c:749:19: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 749 | (void) mmove(dir, &y, &x); | ^ spells.c:752:16: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 752 | lite_spot(oldy, oldx); | ^ spells.c:767:19: warning: passing arguments to 'update_mon' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 767 | update_mon ((int)c_ptr->cptr); | ^ spells.c:774:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 774 | msg_print(out_val); | ^ spells.c:788:24: warning: passing arguments to 'mon_take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 788 | i = mon_take_hit((int)c_ptr->cptr, dam); | ^ spells.c:793:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 793 | msg_print(out_val); | ^ spells.c:799:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 799 | msg_print (out_val); | ^ spells.c:802:27: warning: passing arguments to 'panel_contains' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 802 | else if (panel_contains(y, x) && (py.flags.blind < 1)) | ^ spells.c:804:13: warning: passing arguments to 'print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 804 | print('*', y, x); | ^ spells.c:730:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 730 | void fire_bolt(typ, dir, y, x, dam, bolt_typ) | ^ In file included from spells.c:17: ./externs.h:1181:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1181 | void fire_bolt(); | ^ spells.c:842:19: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 842 | (void) mmove(dir, &y, &x); | ^ spells.c:844:16: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 844 | lite_spot(oldy, oldx); | ^ spells.c:862:18: warning: passing arguments to 'in_bounds' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 862 | if (in_bounds(i, j) && (distance(y, x, i, j) <= max_dis) | ^ spells.c:862:37: warning: passing arguments to 'distance' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 862 | if (in_bounds(i, j) && (distance(y, x, i, j) <= max_dis) | ^ spells.c:863:15: warning: passing arguments to 'los' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 863 | && los(y, x, i, j)) | ^ spells.c:867:16: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 867 | (*destroy)(&t_list[c_ptr->tptr])) | ^ spells.c:868:24: warning: passing arguments to 'delete_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 868 | (void) delete_object(i, j); | ^ spells.c:880:20: warning: passing arguments to 'update_mon' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 880 | update_mon((int)c_ptr->cptr); | ^ spells.c:896:30: warning: passing arguments to 'distance' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 896 | dam = (dam/(distance(i, j, y, x)+1)); | ^ spells.c:897:26: warning: passing arguments to 'mon_take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 897 | k = mon_take_hit((int)c_ptr->cptr, dam); | ^ spells.c:902:29: warning: passing arguments to 'panel_contains' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 902 | else if (panel_contains(i, j) &&(py.flags.blind < 1)) | ^ spells.c:903:13: warning: passing arguments to 'print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 903 | print('*', i, j); | ^ spells.c:911:18: warning: passing arguments to 'in_bounds' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 911 | if (in_bounds(i, j) && panel_contains(i, j) && | ^ spells.c:911:42: warning: passing arguments to 'panel_contains' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 911 | if (in_bounds(i, j) && panel_contains(i, j) && | ^ spells.c:912:18: warning: passing arguments to 'distance' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 912 | (distance(y, x, i, j) <= max_dis)) | ^ spells.c:913:16: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 913 | lite_spot(i, j); | ^ spells.c:921:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 921 | msg_print(out_val); | ^ spells.c:928:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 928 | msg_print(out_val); | ^ spells.c:931:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 931 | msg_print("There is a scream of agony!"); | ^ spells.c:933:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 933 | msg_print("There are several screams of agony!"); | ^ spells.c:938:27: warning: passing arguments to 'panel_contains' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 938 | else if (panel_contains(y, x) && (py.flags.blind < 1)) | ^ spells.c:940:13: warning: passing arguments to 'print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 940 | print('*', y, x); | ^ spells.c:818:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 818 | void fire_ball(typ, dir, y, x, dam_hp, descrip) | ^ In file included from spells.c:17: ./externs.h:1182:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1182 | void fire_ball(); | ^ spells.c:975:20: warning: passing arguments to 'in_bounds' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 975 | if (in_bounds(i, j) && (distance(y, x, i, j) <= max_dis) | ^ spells.c:975:39: warning: passing arguments to 'distance' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 975 | if (in_bounds(i, j) && (distance(y, x, i, j) <= max_dis) | ^ spells.c:976:10: warning: passing arguments to 'los' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 976 | && los(y, x, i, j)) | ^ spells.c:980:18: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 980 | (*destroy)(&t_list[c_ptr->tptr])) | ^ spells.c:981:26: warning: passing arguments to 'delete_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 981 | (void) delete_object(i, j); | ^ spells.c:987:26: warning: passing arguments to 'panel_contains' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 987 | if (panel_contains(i, j) && !(py.flags.status & PY_BLIND)) | ^ spells.c:988:8: warning: passing arguments to 'print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 988 | print('*', i, j); | ^ spells.c:998:25: warning: passing arguments to 'distance' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 998 | dam = (dam/(distance(i, j, y, x)+1)); | ^ spells.c:1005:30: warning: passing arguments to 'monster_death' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1005 | treas = monster_death((int)m_ptr->fy, (int)m_ptr->fx, | ^ spells.c:1029:18: warning: passing arguments to 'delete_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1029 | delete_monster((int) c_ptr->cptr); | ^ spells.c:1034:23: warning: passing arguments to 'fix1_delete_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1034 | fix1_delete_monster((int) c_ptr->cptr); | ^ spells.c:1039:28: warning: passing arguments to 'distance' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1039 | dam = (dam_hp/(distance(i, j, y, x)+1)); | ^ spells.c:1046:35: warning: passing arguments to 'light_dam' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1046 | case GF_LIGHTNING: light_dam(dam, ddesc); break; | ^ spells.c:1047:37: warning: passing arguments to 'poison_gas' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1047 | case GF_POISON_GAS: poison_gas(dam, ddesc); break; | ^ spells.c:1048:29: warning: passing arguments to 'acid_dam' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1048 | case GF_ACID: acid_dam(dam, ddesc); break; | ^ spells.c:1049:30: warning: passing arguments to 'cold_dam' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1049 | case GF_FROST: cold_dam(dam, ddesc); break; | ^ spells.c:1050:29: warning: passing arguments to 'fire_dam' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1050 | case GF_FIRE: fire_dam(dam, ddesc); break; | ^ spells.c:1060:20: warning: passing arguments to 'in_bounds' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1060 | if (in_bounds(i, j) && panel_contains(i, j) && | ^ spells.c:1060:44: warning: passing arguments to 'panel_contains' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1060 | if (in_bounds(i, j) && panel_contains(i, j) && | ^ spells.c:1061:13: warning: passing arguments to 'distance' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1061 | (distance(y, x, i, j) <= max_dis)) | ^ spells.c:1062:11: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1062 | lite_spot(i, j); | ^ spells.c:954:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 954 | void breath(typ, y, x, dam_hp, ddesc, monptr) | ^ In file included from spells.c:17: ./externs.h:1183:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1183 | void breath(); | ^ spells.c:1075:18: warning: passing arguments to 'find_range' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1075 | if (!find_range(TV_STAFF, TV_WAND, &i, &j)) | ^ spells.c:1076:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1076 | msg_print("You have nothing to recharge."); | ^ spells.c:1077:20: warning: passing arguments to 'get_item' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1077 | else if (get_item(&item_val, "Recharge which item?", i, j, CNIL, CNIL)) | ^ spells.c:1090:14: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1090 | i = randint (i/10); | ^ spells.c:1094:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1094 | msg_print("There is a bright flash of light."); | ^ spells.c:1095:17: warning: passing arguments to 'inven_destroy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1095 | inven_destroy(item_val); | ^ spells.c:1100:28: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1100 | i_ptr->p1 += 2 + randint(num); | ^ spells.c:1101:16: warning: passing arguments to 'known2_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1101 | if (known2_p(i_ptr)) | ^ spells.c:1102:18: warning: passing arguments to 'clear_known2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1102 | clear_known2(i_ptr); | ^ spells.c:1103:15: warning: passing arguments to 'clear_empty' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1103 | clear_empty(i_ptr); | ^ spells.c:1067:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1067 | int recharge(num) | ^ In file included from spells.c:17: ./externs.h:1184:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1184 | int recharge(); | ^ spells.c:1126:19: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1126 | (void) mmove(dir, &y, &x); | ^ spells.c:1138:20: warning: passing arguments to 'mon_take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1138 | i = mon_take_hit((int)c_ptr->cptr, dam); | ^ spells.c:1142:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1142 | msg_print(out_val); | ^ spells.c:1148:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1148 | msg_print(out_val); | ^ spells.c:1111:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1111 | int hp_monster(dir, y, x, dam) | ^ In file included from spells.c:17: ./externs.h:1185:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1185 | int hp_monster(); | ^ spells.c:1173:19: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1173 | (void) mmove(dir, &y, &x); | ^ spells.c:1187:24: warning: passing arguments to 'mon_take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1187 | i = mon_take_hit((int)c_ptr->cptr, 75); | ^ spells.c:1191:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1191 | msg_print(out_val); | ^ spells.c:1197:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1197 | msg_print(out_val); | ^ spells.c:1158:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1158 | int drain_life(dir, y, x) | ^ In file included from spells.c:17: ./externs.h:1186:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1186 | int drain_life(); | ^ spells.c:1225:19: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1225 | (void) mmove(dir, &y, &x); | ^ spells.c:1241:18: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1241 | msg_print (out_val); | ^ spells.c:1244:20: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1244 | else if (randint(MAX_MONS_LEVEL) > r_ptr->level) | ^ spells.c:1249:18: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1249 | msg_print (out_val); | ^ spells.c:1256:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1256 | msg_print(out_val); | ^ spells.c:1211:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1211 | int speed_monster(dir, y, x, spd) | ^ In file included from spells.c:17: ./externs.h:1187:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1187 | int speed_monster(); | ^ spells.c:1280:19: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1280 | (void) mmove(dir, &y, &x); | ^ spells.c:1291:16: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1291 | if ((randint(MAX_MONS_LEVEL) < r_ptr->level) || | ^ spells.c:1301:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1301 | msg_print(out_val); | ^ spells.c:1308:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1308 | m_ptr->confused = 2 + randint(16); | ^ spells.c:1312:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1312 | msg_print(out_val); | ^ spells.c:1266:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1266 | int confuse_monster(dir, y, x) | ^ In file included from spells.c:17: ./externs.h:1188:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1188 | int confuse_monster(); | ^ spells.c:1336:19: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1336 | (void) mmove(dir, &y, &x); | ^ spells.c:1347:16: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1347 | if ((randint(MAX_MONS_LEVEL) < r_ptr->level) || | ^ spells.c:1353:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1353 | msg_print(out_val); | ^ spells.c:1360:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1360 | msg_print(out_val); | ^ spells.c:1322:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1322 | int sleep_monster(dir, y, x) | ^ In file included from spells.c:17: ./externs.h:1189:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1189 | int sleep_monster(); | ^ spells.c:1386:19: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1386 | (void) mmove(dir, &y, &x); | ^ spells.c:1395:16: warning: passing arguments to 'twall' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1395 | (void) twall(y, x, 1, 0); | ^ spells.c:1396:18: warning: passing arguments to 'test_light' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1396 | if (test_light(y, x)) | ^ spells.c:1398:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1398 | msg_print("The wall turns into mud."); | ^ spells.c:1405:22: warning: passing arguments to 'panel_contains' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1405 | if (panel_contains(y, x) && test_light(y, x)) | ^ spells.c:1405:42: warning: passing arguments to 'test_light' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1405 | if (panel_contains(y, x) && test_light(y, x)) | ^ spells.c:1407:14: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1407 | objdes(tmp_str, &t_list[c_ptr->tptr], FALSE); | ^ spells.c:1409:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1409 | msg_print(out_val); | ^ spells.c:1414:23: warning: passing arguments to 'delete_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1414 | (void) delete_object(y, x); | ^ spells.c:1415:14: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1415 | if (randint(10) == 1) | ^ spells.c:1417:19: warning: passing arguments to 'place_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1417 | place_object(y, x, FALSE); | ^ spells.c:1418:21: warning: passing arguments to 'test_light' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1418 | if (test_light(y, x)) | ^ spells.c:1419:18: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1419 | msg_print("You have found something!"); | ^ spells.c:1421:12: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1421 | lite_spot(y, x); | ^ spells.c:1423:33: warning: passing arguments to 'delete_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1423 | else (void) delete_object(y, x); | ^ spells.c:1432:24: warning: passing arguments to 'mon_take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1432 | i = mon_take_hit((int)c_ptr->cptr, 100); | ^ spells.c:1439:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1439 | msg_print(out_val); | ^ spells.c:1446:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1446 | msg_print(out_val); | ^ spells.c:1370:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1370 | int wall_to_mud(dir, y, x) | ^ In file included from spells.c:17: ./externs.h:1190:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1190 | int wall_to_mud(); | ^ spells.c:1469:19: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1469 | (void) mmove(dir, &y, &x); | ^ spells.c:1480:25: warning: passing arguments to 'delete_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1480 | if (delete_object(y, x)) | ^ spells.c:1482:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1482 | msg_print("There is a bright flash of light!"); | ^ spells.c:1488:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1488 | msg_print("Click!"); | ^ spells.c:1492:14: warning: passing arguments to 'known2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1492 | known2(t_ptr); | ^ spells.c:1458:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1458 | int td_destroy2(dir, y, x) | ^ In file included from spells.c:17: ./externs.h:1191:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1191 | int td_destroy2(); | ^ spells.c:1517:19: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1517 | (void) mmove(dir, &y, &x); | ^ spells.c:1526:15: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1526 | if (randint(MAX_MONS_LEVEL) > r_ptr->level) | ^ spells.c:1529:22: warning: passing arguments to 'delete_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1529 | delete_monster((int)c_ptr->cptr); | ^ spells.c:1532:15: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1532 | randint(m_level[MAX_MONS_LEVEL]-m_level[0]) | ^ spells.c:1531:28: warning: passing arguments to 'place_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1531 | poly = place_monster(y, x, | ^ spells.c:1535:34: warning: passing arguments to 'panel_contains' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1535 | if (poly && panel_contains(y, x) && (c_ptr->tl || c_ptr->pl)) | ^ spells.c:1542:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1542 | msg_print(out_val); | ^ spells.c:1503:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1503 | int poly_monster(dir, y, x) | ^ In file included from spells.c:17: ./externs.h:1192:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1192 | int poly_monster(); | ^ spells.c:1570:19: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1570 | (void) mmove(dir, &y, &x); | ^ spells.c:1578:26: warning: passing arguments to 'delete_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1578 | (void) delete_object(y, x); | ^ spells.c:1596:24: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1596 | damage = damroll (4, 8); | ^ spells.c:1600:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1600 | msg_print (out_val); | ^ spells.c:1601:21: warning: passing arguments to 'mon_take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1601 | i = mon_take_hit((int)c_ptr->cptr, damage); | ^ spells.c:1606:19: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1606 | msg_print (out_val); | ^ spells.c:1614:25: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1614 | m_ptr->hp += damroll(4, 8); | ^ spells.c:1621:13: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1621 | lite_spot(y, x); | ^ spells.c:1552:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1552 | int build_wall(dir, y, x) | ^ In file included from spells.c:17: ./externs.h:1193:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1193 | int build_wall(); | ^ spells.c:1642:19: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1642 | (void) mmove(dir, &y, &x); | ^ spells.c:1651:27: warning: passing arguments to 'multiply_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1651 | return multiply_monster(y, x, (int)m_list[c_ptr->cptr].mptr, 0); | ^ spells.c:1632:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1632 | int clone_monster(dir, y, x) | ^ In file included from spells.c:17: ./externs.h:1194:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1194 | int clone_monster(); | ^ spells.c:1672:29: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1672 | yn = m_ptr->fy + (randint(2*dis+1) - (dis + 1)); | ^ spells.c:1673:29: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1673 | xn = m_ptr->fx + (randint(2*dis+1) - (dis + 1)); | ^ spells.c:1675:24: warning: passing arguments to 'in_bounds' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1675 | while (!in_bounds(yn, xn)); | ^ spells.c:1684:11: warning: passing arguments to 'move_rec' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1684 | move_rec((int)m_ptr->fy, (int)m_ptr->fx, yn, xn); | ^ spells.c:1685:12: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1685 | lite_spot((int)m_ptr->fy, (int)m_ptr->fx); | ^ spells.c:1691:26: warning: passing arguments to 'distance' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1691 | m_ptr->cdis = distance (char_row, char_col, yn, xn); | ^ spells.c:1692:14: warning: passing arguments to 'update_mon' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1692 | update_mon (monptr); | ^ spells.c:1660:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1660 | void teleport_away(monptr, dis) | ^ In file included from spells.c:17: ./externs.h:1195:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1195 | void teleport_away(); | ^ spells.c:1708:24: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1708 | y = ny + (randint(2*dis+1) - (dis + 1)); | ^ spells.c:1709:24: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1709 | x = nx + (randint(2*dis+1) - (dis + 1)); | ^ spells.c:1717:20: warning: passing arguments to 'in_bounds' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1717 | while (!in_bounds(y, x) || (cave[y][x].fval >= MIN_CLOSED_SPACE) | ^ spells.c:1719:11: warning: passing arguments to 'move_rec' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1719 | move_rec(char_row, char_col, y, x); | ^ spells.c:1725:11: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1725 | lite_spot(i, j); | ^ spells.c:1727:12: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1727 | lite_spot(char_row, char_col); | ^ spells.c:1732:12: warning: passing arguments to 'creatures' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1732 | creatures(FALSE); | ^ spells.c:1697:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1697 | void teleport_to(ny, nx) | ^ In file included from spells.c:17: ./externs.h:1196:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1196 | void teleport_to(); | ^ spells.c:1748:19: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1748 | (void) mmove(dir, &y, &x); | ^ spells.c:1737:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1737 | int teleport_monster(dir, y, x) | ^ In file included from spells.c:17: ./externs.h:1197:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1197 | int teleport_monster(); | ^ spells.c:1788:18: warning: passing arguments to 'delete_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1788 | delete_monster(i); | ^ spells.c:1810:14: warning: passing arguments to 'get_com' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1810 | if (get_com("Which type of creature do you wish exterminated?", &typ)) | ^ spells.c:1822:22: warning: passing arguments to 'delete_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1822 | delete_monster(i); | ^ spells.c:1831:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1831 | msg_print(out_val); | ^ spells.c:1825:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1825 | else | ^ spells.c:1856:8: warning: passing arguments to 'los' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1856 | !los(char_row, char_col, (int)m_ptr->fy, (int)m_ptr->fx)) | ^ spells.c:1867:18: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1867 | msg_print (out_val); | ^ spells.c:1870:23: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1870 | else if (randint(MAX_MONS_LEVEL) > r_ptr->level) | ^ spells.c:1877:18: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1877 | msg_print (out_val); | ^ spells.c:1885:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1885 | msg_print(out_val); | ^ spells.c:1840:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1840 | int speed_monsters(spd) | ^ In file included from spells.c:17: ./externs.h:1200:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1200 | int speed_monsters(); | ^ spells.c:1907:8: warning: passing arguments to 'los' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1907 | !los(char_row, char_col, (int)m_ptr->fy, (int)m_ptr->fx)) | ^ spells.c:1910:24: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1910 | else if ((randint(MAX_MONS_LEVEL) < r_ptr->level) || | ^ spells.c:1918:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1918 | msg_print(out_val); | ^ spells.c:1927:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1927 | msg_print(out_val); | ^ spells.c:1963:22: warning: passing arguments to 'delete_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1963 | delete_monster(i); | ^ spells.c:1966:15: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1966 | randint(m_level[MAX_MONS_LEVEL]-m_level[0]) | ^ spells.c:1965:28: warning: passing arguments to 'place_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1965 | mass = place_monster(y, x, | ^ spells.c:1985:25: warning: passing arguments to 'panel_contains' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1985 | if (panel_contains((int)m_ptr->fy, (int)m_ptr->fx) && | ^ spells.c:1990:9: warning: passing arguments to 'print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1990 | print((char)c_list[m_ptr->mptr].cchar, (int)m_ptr->fy, | ^ spells.c:1997:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1997 | msg_print("You sense the presence of evil!"); | ^ spells.c:1998:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1998 | msg_print(CNIL); | ^ spells.c:2000:16: warning: passing arguments to 'creatures' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2000 | creatures(FALSE); | ^ spells.c:2027:25: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2027 | if (num == 0) msg_print("You feel a little better."); | ^ spells.c:2028:22: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2028 | else msg_print("You feel better."); | ^ spells.c:2030:24: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2030 | if (num < 7) msg_print("You feel much better."); | ^ spells.c:2031:21: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2031 | else msg_print("You feel very good."); | ^ spells.c:2007:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2007 | int hp_player(num) | ^ In file included from spells.c:17: ./externs.h:1204:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1204 | int hp_player(); | ^ spells.c:2125:13: warning: passing arguments to 'in_bounds' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2125 | in_bounds(i, j) && (randint(8) == 1)) | ^ spells.c:2125:31: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2125 | in_bounds(i, j) && (randint(8) == 1)) | ^ spells.c:2129:26: warning: passing arguments to 'delete_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2129 | (void) delete_object(i, j); | ^ spells.c:2144:24: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2144 | damage = damroll (4, 8); | ^ spells.c:2148:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2148 | msg_print (out_val); | ^ spells.c:2149:21: warning: passing arguments to 'mon_take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2149 | i = mon_take_hit((int)c_ptr->cptr, damage); | ^ spells.c:2154:19: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2154 | msg_print (out_val); | ^ spells.c:2162:25: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2162 | m_ptr->hp += damroll(4, 8); | ^ spells.c:2174:21: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2174 | tmp = randint(10); | ^ spells.c:2184:13: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2184 | lite_spot(i, j); | ^ spells.c:2200:29: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2200 | f_ptr->protevil += randint(25) + 3*py.misc.lev; | ^ spells.c:2214:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2214 | msg_print ("There is already an object under you."); | ^ spells.c:2220:19: warning: passing arguments to 'place_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2220 | place_object(char_row, char_col, FALSE); | ^ spells.c:2221:14: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2221 | invcopy(&t_list[c_ptr->tptr], OBJ_MUSH); | ^ spells.c:2244:7: warning: passing arguments to 'los' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2244 | los(char_row, char_col, (int)m_ptr->fy, (int)m_ptr->fx)) | ^ spells.c:2249:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2249 | k = mon_take_hit (i, randint(damage)); | ^ spells.c:2249:21: warning: passing arguments to 'mon_take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2249 | k = mon_take_hit (i, randint(damage)); | ^ spells.c:2256:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2256 | msg_print(out_val); | ^ spells.c:2228:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2228 | int dispel_creature(cflag, damage) | ^ In file included from spells.c:17: ./externs.h:1212:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1212 | int dispel_creature(); | ^ spells.c:2281:8: warning: passing arguments to 'los' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2281 | (los(char_row, char_col, (int)m_ptr->fy, (int)m_ptr->fx))) | ^ spells.c:2285:16: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2285 | (randint(5) == 1)) | ^ spells.c:2290:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2290 | msg_print(out_val); | ^ spells.c:2299:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2299 | msg_print(out_val); | ^ spells.c:2318:14: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2318 | invcopy(&t_list[i], OBJ_SCARE_MON); | ^ spells.c:2328:23: warning: passing arguments to 'dec_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2328 | (void) dec_stat (A_STR); | ^ spells.c:2329:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2329 | msg_print("You feel very sick."); | ^ spells.c:2332:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2332 | msg_print("You feel sick for a moment, it passes."); | ^ spells.c:2341:22: warning: passing arguments to 'dec_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2341 | (void) dec_stat(A_INT); | ^ spells.c:2342:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2342 | msg_print("You become very dizzy."); | ^ spells.c:2345:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2345 | msg_print("You become dizzy for a moment, it passes."); | ^ spells.c:2354:22: warning: passing arguments to 'dec_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2354 | (void) dec_stat(A_WIS); | ^ spells.c:2355:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2355 | msg_print("You feel very naive."); | ^ spells.c:2358:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2358 | msg_print("You feel naive for a moment, it passes."); | ^ spells.c:2367:22: warning: passing arguments to 'dec_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2367 | (void) dec_stat(A_DEX); | ^ spells.c:2368:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2368 | msg_print("You feel very sore."); | ^ spells.c:2371:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2371 | msg_print("You feel sore for a moment, it passes."); | ^ spells.c:2380:22: warning: passing arguments to 'dec_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2380 | (void) dec_stat(A_CON); | ^ spells.c:2381:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2381 | msg_print("You feel very sick."); | ^ spells.c:2384:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2384 | msg_print("You feel sick for a moment, it passes."); | ^ spells.c:2393:22: warning: passing arguments to 'dec_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2393 | (void) dec_stat(A_CHR); | ^ spells.c:2394:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2394 | msg_print("Your skin starts to itch."); | ^ spells.c:2397:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2397 | msg_print("Your skin starts to itch, but feels better now."); | ^ spells.c:2430:15: warning: passing arguments to 'calc_spells' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2430 | calc_spells(A_INT); | ^ spells.c:2431:13: warning: passing arguments to 'calc_mana' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2431 | calc_mana(A_INT); | ^ spells.c:2435:15: warning: passing arguments to 'calc_spells' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2435 | calc_spells(A_WIS); | ^ spells.c:2436:13: warning: passing arguments to 'calc_mana' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2436 | calc_mana(A_WIS); | ^ spells.c:2402:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2402 | void lose_exp(amount) | ^ In file included from spells.c:17: ./externs.h:1221:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1221 | void lose_exp(); | ^ spells.c:2457:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2457 | msg_print("The effect of the poison has been reduced."); | ^ spells.c:2464:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2464 | void bless(amount) | ^ In file included from spells.c:17: ./externs.h:1223:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1223 | void bless(); | ^ spells.c:2472:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2472 | void detect_inv2(amount) | ^ In file included from spells.c:17: ./externs.h:1224:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1224 | void detect_inv2(); | ^ spells.c:2504:25: warning: passing arguments to 'delete_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2504 | (void) delete_object(y, x); | ^ spells.c:2506:19: warning: passing arguments to 'delete_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2506 | delete_monster((int)c_ptr->cptr); | ^ spells.c:2479:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2479 | static void replace_spot(y, x, typ) | ^ spells.c:30:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 30 | static void replace_spot(); | ^ spells.c:2523:17: warning: passing arguments to 'in_bounds' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2523 | if (in_bounds(i, j) && (cave[i][j].fval != BOUNDARY_WALL)) | ^ spells.c:2525:20: warning: passing arguments to 'distance' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2525 | k = distance(i, j, y, x); | ^ spells.c:2529:29: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2529 | replace_spot(i, j, randint(6)); | ^ spells.c:2531:29: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2531 | replace_spot(i, j, randint(9)); | ^ spells.c:2534:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2534 | msg_print("There is a searing blast of light!"); | ^ spells.c:2535:33: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2535 | py.flags.blind += 10 + randint(10); | ^ spells.c:2514:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2514 | void destroy_area(y, x) | ^ In file included from spells.c:17: ./externs.h:1225:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1225 | void destroy_area(); | ^ spells.c:2554:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2554 | if (randint(100) == 1) /* very rarely allow enchantment over limit */ | ^ spells.c:2555:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2555 | chance = randint(chance) - 1; | ^ spells.c:2557:14: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2557 | if (randint(limit) > chance) | ^ spells.c:2540:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2540 | int enchant(plusses, limit) | ^ In file included from spells.c:17: ./externs.h:1226:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1226 | int enchant(); | ^ spells.c:2609:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2609 | msg_print("You feel your life energies returning."); | ^ 364 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c wizard.c In file included from wizard.c:17: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from wizard.c:17: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ wizard.c:32:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 32 | long atol(); | ^ /usr/include/stdlib.h:102:7: note: conflicting prototype is here 102 | long atol(const char *); | ^ wizard.c:70:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | prt("(3 - 118) Strength = ", 0, 0); | ^ wizard.c:71:17: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | if (get_string(tmp_str, 0, 25, 3)) | ^ wizard.c:77:19: warning: passing arguments to 'res_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | (void) res_stat(A_STR); | ^ wizard.c:83:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | prt("(3 - 118) Intelligence = ", 0, 0); | ^ wizard.c:84:17: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | if (get_string(tmp_str, 0, 25, 3)) | ^ wizard.c:90:19: warning: passing arguments to 'res_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | (void) res_stat(A_INT); | ^ wizard.c:96:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | prt("(3 - 118) Wisdom = ", 0, 0); | ^ wizard.c:97:17: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | if (get_string(tmp_str, 0, 25, 3)) | ^ wizard.c:103:19: warning: passing arguments to 'res_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | (void) res_stat(A_WIS); | ^ wizard.c:109:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | prt("(3 - 118) Dexterity = ", 0, 0); | ^ wizard.c:110:17: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | if (get_string(tmp_str, 0, 25, 3)) | ^ wizard.c:116:19: warning: passing arguments to 'res_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | (void) res_stat(A_DEX); | ^ wizard.c:122:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | prt("(3 - 118) Constitution = ", 0, 0); | ^ wizard.c:123:17: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | if (get_string(tmp_str, 0, 25, 3)) | ^ wizard.c:129:19: warning: passing arguments to 'res_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | (void) res_stat(A_CON); | ^ wizard.c:135:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 135 | prt("(3 - 118) Charisma = ", 0, 0); | ^ wizard.c:136:17: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 136 | if (get_string(tmp_str, 0, 25, 3)) | ^ wizard.c:142:19: warning: passing arguments to 'res_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 142 | (void) res_stat(A_CHR); | ^ wizard.c:149:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 149 | prt("(1 - 32767) Hit points = ", 0, 0); | ^ wizard.c:150:17: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 150 | if (get_string(tmp_str, 0, 25, 5)) | ^ wizard.c:165:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 165 | prt("(0 - 32767) Mana = ", 0, 0); | ^ wizard.c:166:17: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 166 | if (get_string(tmp_str, 0, 25, 5)) | ^ wizard.c:182:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | prt(tmp_str, 0, 0); | ^ wizard.c:183:17: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 183 | if (get_string(tmp_str, 0, tmp_val, 7)) | ^ wizard.c:197:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 197 | prt(tmp_str, 0, 0); | ^ wizard.c:198:17: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 198 | if (get_string(tmp_str, 0, tmp_val, 3)) | ^ wizard.c:209:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 209 | prt(tmp_str, 0, 0); | ^ wizard.c:210:17: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 210 | if (get_string(tmp_str, 0, tmp_val, 3)) | ^ wizard.c:221:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | prt(tmp_str, 0, 0); | ^ wizard.c:222:17: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 222 | if (get_string(tmp_str, 0, tmp_val, 3)) | ^ wizard.c:233:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 233 | prt(tmp_str, 0, 0); | ^ wizard.c:234:17: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 234 | if (get_string(tmp_str, 0, tmp_val, 3)) | ^ wizard.c:245:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 245 | prt(tmp_str, 0, 0); | ^ wizard.c:246:17: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 246 | if (get_string(tmp_str, 0, tmp_val, 3)) | ^ wizard.c:258:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 258 | prt(tmp_str, 0, 0); | ^ wizard.c:259:17: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 259 | if (get_string(tmp_str, 0, tmp_val, 3)) | ^ wizard.c:270:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 270 | prt(tmp_str, 0, 0); | ^ wizard.c:271:17: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 271 | if (get_string(tmp_str, 0, tmp_val, 3)) | ^ wizard.c:280:16: warning: passing arguments to 'get_com' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 280 | while(get_com("Alter speed? (+/-)", tmp_str)) | ^ wizard.c:283:14: warning: passing arguments to 'change_speed' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 283 | change_speed(-1); | ^ wizard.c:285:14: warning: passing arguments to 'change_speed' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 285 | change_speed(1); | ^ wizard.c:304:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 304 | msg_print("Warning: This routine can cause a fatal error."); | ^ wizard.c:308:11: warning: passing arguments to 'inscribe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 308 | inscribe(i_ptr, "wizard item"); | ^ wizard.c:311:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 311 | prt("Tval : ", 0, 0); | ^ wizard.c:312:18: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 312 | if (!get_string(tmp_str, 0, 9, 3)) | ^ wizard.c:317:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 317 | prt("Tchar : ", 0, 0); | ^ wizard.c:318:18: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 318 | if (!get_string(tmp_str, 0, 9, 1)) | ^ wizard.c:322:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 322 | prt("Subval : ", 0, 0); | ^ wizard.c:323:18: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 323 | if (!get_string(tmp_str, 0, 9, 5)) | ^ wizard.c:328:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 328 | prt("Weight : ", 0, 0); | ^ wizard.c:329:18: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 329 | if (!get_string(tmp_str, 0, 9, 5)) | ^ wizard.c:334:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 334 | prt("Number : ", 0, 0); | ^ wizard.c:335:18: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 335 | if (!get_string(tmp_str, 0, 9, 5)) | ^ wizard.c:340:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 340 | prt("Damage (dice): ", 0, 0); | ^ wizard.c:341:18: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 341 | if (!get_string(tmp_str, 0, 15, 3)) | ^ wizard.c:346:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 346 | prt("Damage (sides): ", 0, 0); | ^ wizard.c:347:18: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 347 | if (!get_string(tmp_str, 0, 16, 3)) | ^ wizard.c:352:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 352 | prt("+To hit: ", 0, 0); | ^ wizard.c:353:18: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 353 | if (!get_string(tmp_str, 0, 9, 3)) | ^ wizard.c:358:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 358 | prt("+To dam: ", 0, 0); | ^ wizard.c:359:18: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 359 | if (!get_string(tmp_str, 0, 9, 3)) | ^ wizard.c:364:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 364 | prt("AC : ", 0, 0); | ^ wizard.c:365:18: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 365 | if (!get_string(tmp_str, 0, 9, 3)) | ^ wizard.c:370:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 370 | prt("+To AC : ", 0, 0); | ^ wizard.c:371:18: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 371 | if (!get_string(tmp_str, 0, 9, 3)) | ^ wizard.c:376:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 376 | prt("P1 : ", 0, 0); | ^ wizard.c:377:18: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 377 | if (!get_string(tmp_str, 0, 9, 5)) | ^ wizard.c:382:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 382 | prt("Flags (In HEX): ", 0, 0); | ^ wizard.c:383:18: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 383 | if (!get_string(tmp_str, 0, 16, 8)) | ^ wizard.c:391:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 391 | prt("Cost : ", 0, 0); | ^ wizard.c:392:18: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 392 | if (!get_string(tmp_str, 0, 9, 8)) | ^ wizard.c:397:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 397 | prt("Level : ", 0, 0); | ^ wizard.c:398:18: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 398 | if (!get_string(tmp_str, 0, 10, 3)) | ^ wizard.c:403:16: warning: passing arguments to 'get_check' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 403 | if (get_check("Allocate?")) | ^ wizard.c:408:22: warning: passing arguments to 'delete_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 408 | (void) delete_object(char_row, char_col); | ^ wizard.c:413:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 413 | msg_print("Allocated."); | ^ wizard.c:416:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 416 | msg_print("Aborted."); | ^ 80 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c store2.c In file included from store2.c:17: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from store2.c:17: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ store2.c:57:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 57 | long atol(); | ^ /usr/include/stdlib.h:102:7: note: conflicting prototype is here 102 | long atol(const char *); | ^ store2.c:149:29: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 149 | msg_print(comment1[randint(14)-1]); | ^ store2.c:149:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 149 | msg_print(comment1[randint(14)-1]); | ^ store2.c:160:45: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 160 | (void) strcpy(comment, comment2a[randint(3)-1]); | ^ store2.c:162:45: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 162 | (void) strcpy(comment, comment2b[randint(16)-1]); | ^ store2.c:164:14: warning: passing arguments to 'insert_lnum' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 164 | insert_lnum(comment, "%A1", offer, FALSE); | ^ store2.c:165:14: warning: passing arguments to 'insert_lnum' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 165 | insert_lnum(comment, "%A2", asking, FALSE); | ^ store2.c:166:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 166 | msg_print(comment); | ^ store2.c:154:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 154 | static void prt_comment2(offer, asking, final) | ^ store2.c:176:46: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 176 | (void) strcpy (comment, comment3a[randint(3)-1]); | ^ store2.c:178:46: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 178 | (void) strcpy (comment, comment3b[randint(15)-1]); | ^ store2.c:180:14: warning: passing arguments to 'insert_lnum' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 180 | insert_lnum(comment, "%A1", offer, FALSE); | ^ store2.c:181:14: warning: passing arguments to 'insert_lnum' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 181 | insert_lnum(comment, "%A2", asking, FALSE); | ^ store2.c:182:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | msg_print(comment); | ^ store2.c:170:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | static void prt_comment3(offer, asking, final) | ^ store2.c:191:16: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 191 | tmp = randint(5) - 1; | ^ store2.c:192:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 192 | msg_print(comment4a[tmp]); | ^ store2.c:193:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 193 | msg_print(comment4b[tmp]); | ^ store2.c:199:29: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 199 | msg_print(comment5[randint(10)-1]); | ^ store2.c:199:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 199 | msg_print(comment5[randint(10)-1]); | ^ store2.c:205:30: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 205 | msg_print (comment6[randint(5)-1]); | ^ store2.c:205:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 205 | msg_print (comment6[randint(5)-1]); | ^ store2.c:212:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 212 | prt("You may:", 20, 0); | ^ store2.c:213:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 213 | prt(" p) Purchase an item. b) Browse store's inventory.", 21, 0); | ^ store2.c:214:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 214 | prt(" s) Sell an item. i/e/t/w/x) Inventory/Equipment Lists.", | ^ store2.c:216:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 216 | prt("ESC) Exit from Building. ^R) Redraw the screen.", 23, 0); | ^ store2.c:225:8: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 225 | prt("Specify an asking-price in gold pieces.", 21, 0); | ^ store2.c:227:8: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 227 | prt("Specify an offer in gold pieces.", 21, 0); | ^ store2.c:228:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 228 | prt("ESC) Quit Haggling.", 22, 0); | ^ store2.c:229:14: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 229 | erase_line (23, 0); /* clear last line */ | ^ store2.c:221:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | static void haggle_commands(typ) | ^ store2.c:254:13: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 254 | objdes(out_val1, i_ptr, TRUE); | ^ store2.c:257:10: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 257 | prt(out_val2, i+5, 0); | ^ store2.c:269:10: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 269 | prt(out_val2, i+5, 59); | ^ store2.c:275:18: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 275 | erase_line (j+i+5, 0); /* clear remaining lines */ | ^ store2.c:277:15: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 277 | put_buffer("- cont. -", 17, 60); | ^ store2.c:279:16: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 279 | erase_line (17, 60); | ^ store2.c:234:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 234 | static void display_inventory(store_num, start) | ^ store2.c:302:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 302 | prt(out_val, i+5, 59); | ^ store2.c:284:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 284 | static void display_cost(store_num, pos) | ^ store2.c:312:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 312 | prt(out_val, 18, 17); | ^ store2.c:324:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 324 | put_buffer(owners[s_ptr->owner].owner_name, 3, 9); | ^ store2.c:325:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 325 | put_buffer("Item", 4, 3); | ^ store2.c:326:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 326 | put_buffer("Asking Price", 4, 60); | ^ store2.c:317:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 317 | static void display_store(store_num, cur_top) | ^ store2.c:346:17: warning: passing arguments to 'get_com' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 346 | while (get_com(out_val, &command)) | ^ store2.c:357:13: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 357 | erase_line(MSG_LINE, 0); | ^ store2.c:334:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 334 | static int get_store_item(com_val, pmt, i, j) | ^ store2.c:377:48: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 377 | s_ptr->store_open = turn + 2500 + randint(2500); | ^ store2.c:363:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 363 | static int increase_insults(store_num) | ^ store2.c:385:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 385 | static void decrease_insults(store_num) | ^ store2.c:408:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 408 | msg_print (CNIL); /* keep insult separate from rest of haggle */ | ^ store2.c:397:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 397 | static int haggle_insults(store_num) | ^ store2.c:435:10: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 435 | prt(comment, 0, 0); | ^ store2.c:441:8: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 441 | prt (default_offer, 0, orig_clen); | ^ store2.c:444:22: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 444 | if (!get_string(out_val, 0, clen, 40)) | ^ store2.c:473:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 473 | msg_print("You haven't even made your first offer yet!"); | ^ store2.c:487:16: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 487 | erase_line (0, 0); | ^ store2.c:414:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 414 | static int get_haggle(comment, new_offer, num_offer) | ^ store2.c:492:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 492 | static int receive_offer(store_num, comment, new_offer, last_offer, | ^ store2.c:556:20: warning: passing arguments to 'sell_price' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 556 | cost = sell_price(store_num, &max_sell, &min_sell, item); | ^ store2.c:576:22: warning: passing arguments to 'noneedtobargain' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 576 | if (noneedtobargain(store_num, final_ask)) | ^ store2.c:578:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 578 | msg_print("After a long bargaining session, you agree upon the price."); | ^ store2.c:595:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 595 | put_buffer(out_val, 1, 0); | ^ store2.c:637:21: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 637 | x2 = x1 + randint(5) - 3; | ^ store2.c:669:19: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 669 | erase_line (1, 0); | ^ store2.c:671:18: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 671 | put_buffer(out_val, 1, 39); | ^ store2.c:685:18: warning: passing arguments to 'updatebargain' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 685 | updatebargain(store_num, *price, final_ask); | ^ store2.c:532:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 532 | static int purchase_haggle(store_num, price, item) | ^ store2.c:716:20: warning: passing arguments to 'item_value' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 716 | cost = item_value(item); | ^ store2.c:751:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 751 | msg_print("I am sorry, but I have not the money to afford such \ | ^ store2.c:764:30: warning: passing arguments to 'noneedtobargain' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 764 | if (noneedtobargain(store_num, final_ask)) | ^ store2.c:766:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 766 | msg_print("After a long bargaining session, you agree upon \ | ^ store2.c:788:18: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 788 | put_buffer(out_val, 1, 0); | ^ store2.c:830:25: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 830 | x2 = x1 + randint(5) - 3; | ^ store2.c:862:16: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 862 | erase_line (1, 0); | ^ store2.c:864:15: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 864 | put_buffer(out_val, 1, 39); | ^ store2.c:879:18: warning: passing arguments to 'updatebargain' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 879 | updatebargain(store_num, *price, final_ask); | ^ store2.c:692:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 692 | static int sell_haggle(store_num, price, item) | ^ store2.c:908:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 908 | msg_print("I am currently out of stock."); | ^ store2.c:914:20: warning: passing arguments to 'take_one_item' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 914 | take_one_item(&sell_obj, &s_ptr->store_inven[item_val].sitem); | ^ store2.c:915:26: warning: passing arguments to 'inven_check_num' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 915 | if (inven_check_num(&sell_obj)) | ^ store2.c:931:27: warning: passing arguments to 'inven_carry' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 931 | item_new = inven_carry(&sell_obj); | ^ store2.c:933:18: warning: passing arguments to 'store_destroy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 933 | store_destroy(store_num, item_val, TRUE); | ^ store2.c:934:11: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 934 | objdes(tmp_str, &inventory[item_new], TRUE); | ^ store2.c:937:8: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 937 | prt(out_val, 0, 0); | ^ store2.c:967:18: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 967 | msg_print("Liar! You have not the gold!"); | ^ store2.c:976:15: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 976 | erase_line (1, 0); | ^ store2.c:979:5: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 979 | prt("You cannot carry that many different items.", 0, 0); | ^ store2.c:886:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 886 | static int store_purchase(store_num, cur_top) | ^ store2.c:1005:37: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1005 | flag = (*store_buy[store_num])(inventory[counter].tval); | ^ store2.c:1017:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1017 | msg_print("You have nothing to sell to this store!"); | ^ store2.c:1018:20: warning: passing arguments to 'get_item' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1018 | else if (get_item(&item_val, "Which one? ", first_item, last_item, mask, | ^ store2.c:1021:20: warning: passing arguments to 'take_one_item' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1021 | take_one_item(&sold_obj, &inventory[item_val]); | ^ store2.c:1022:13: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1022 | objdes(tmp_str, &sold_obj, TRUE); | ^ store2.c:1024:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1024 | msg_print(out_val); | ^ store2.c:1025:26: warning: passing arguments to 'store_check_num' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1025 | if (store_check_num(&sold_obj, store_num)) | ^ store2.c:1034:16: warning: passing arguments to 'identify' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1034 | identify(&item_val); | ^ store2.c:1036:21: warning: passing arguments to 'take_one_item' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1036 | take_one_item(&sold_obj, &inventory[item_val]); | ^ store2.c:1038:14: warning: passing arguments to 'known2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1038 | known2(&sold_obj); | ^ store2.c:1039:21: warning: passing arguments to 'inven_destroy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1039 | inven_destroy(item_val); | ^ store2.c:1040:14: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1040 | objdes(tmp_str, &sold_obj, TRUE); | ^ store2.c:1042:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1042 | msg_print(out_val); | ^ store2.c:1043:19: warning: passing arguments to 'store_carry' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1043 | store_carry(store_num, &item_pos, &sold_obj); | ^ store2.c:1069:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1069 | msg_print("How dare you!"); | ^ store2.c:1070:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1070 | msg_print("I will not buy that!"); | ^ store2.c:1074:15: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1074 | erase_line (1, 0); | ^ store2.c:1078:11: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1078 | msg_print("I have not the room in my store to keep it."); | ^ store2.c:986:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 986 | static int store_sell(store_num, cur_top) | ^ store2.c:1101:16: warning: passing arguments to 'move_cursor' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1101 | move_cursor (20, 9); | ^ store2.c:1104:15: warning: passing arguments to 'get_com' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1104 | if (get_com(CNIL, &command)) | ^ store2.c:1116:18: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1116 | msg_print("Entire inventory is shown."); | ^ store2.c:1131:22: warning: passing arguments to 'inven_command' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1131 | inven_command(command); | ^ store2.c:1159:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1159 | msg_print("The doors are locked."); | ^ store2.c:1085:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1085 | void enter_store(store_num) | ^ In file included from store2.c:17: ./externs.h:1245:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1245 | void enter_store(); | ^ 118 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c signals.c In file included from signals.c:60: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from signals.c:60: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ signals.c:114:18: warning: passing arguments to 'get_check' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | if (!get_check("Really commit *Suicide*?")) | ^ signals.c:117:10: warning: passing arguments to 'disturb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | disturb(1, 0); | ^ signals.c:118:18: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | erase_line(0, 0); | ^ signals.c:123:13: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | put_buffer(" -more-", MSG_LINE, 0); | ^ signals.c:131:10: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 131 | prt("Interrupt!", 0, 0); | ^ signals.c:136:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 136 | prt( | ^ signals.c:142:10: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 142 | prt("Your guardian angel is trying to save you.", 0, 0); | ^ signals.c:154:24: warning: passing arguments to '_save_char' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 154 | (void) _save_char(savefile); /* Quietly save the memory anyway. */ | ^ signals.c:91:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | static void signal_handler(sig) | ^ 11 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c moria1.c In file included from moria1.c:19: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from moria1.c:19: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ moria1.c:48:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | void change_speed(num) | ^ In file included from moria1.c:19: ./externs.h:1010:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1010 | void change_speed(); | ^ moria1.c:86:12: warning: passing arguments to 'bst_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | bst_stat(i, amount); | ^ moria1.c:72:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | void py_bonuses(t_ptr, factor) | ^ In file included from moria1.c:19: ./externs.h:1011:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1011 | void py_bonuses(); | ^ moria1.c:170:16: warning: passing arguments to 'known2_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | if (known2_p(i_ptr)) | ^ moria1.c:333:10: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 333 | objdes(tmp_val, &inventory[i], TRUE); | ^ moria1.c:355:9: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 355 | prt(&out_val[i][2], current_line, col); | ^ moria1.c:357:9: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 357 | prt(out_val[i], current_line, col); | ^ moria1.c:363:12: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 363 | prt (tmp_val, current_line, 71); | ^ moria1.c:313:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 313 | int show_inven(r1, r2, weight, col, mask) | ^ In file included from moria1.c:19: ./externs.h:1013:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1013 | int show_inven(); | ^ moria1.c:373:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 373 | char *describe_use(i) | ^ In file included from moria1.c:19: ./externs.h:1014:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1014 | char *describe_use(); | ^ moria1.c:467:10: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 467 | objdes(prt2, &inventory[i], TRUE); | ^ moria1.c:491:9: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 491 | prt(&out_val[line][2], line+1, col); | ^ moria1.c:493:9: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 493 | prt(out_val[line], line+1, col); | ^ moria1.c:499:11: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 499 | prt(prt2, line+1, 71); | ^ moria1.c:504:13: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 504 | erase_line(line+1, col); | ^ moria1.c:413:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 413 | int show_equip(weight, col) | ^ In file included from moria1.c:19: ./externs.h:1015:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1015 | int show_equip(); | ^ moria1.c:535:9: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 535 | objdes(prt2, t_ptr, TRUE); | ^ moria1.c:540:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 540 | msg_print(out_val); | ^ moria1.c:543:10: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 543 | invcopy(t_ptr, OBJ_NOTHING); | ^ moria1.c:509:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 509 | void takeoff(item_val, posn) | ^ In file included from moria1.c:19: ./externs.h:1016:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1016 | void takeoff(); | ^ moria1.c:555:9: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 555 | objdes(object, &inventory[item], TRUE); | ^ moria1.c:558:19: warning: passing arguments to 'get_check' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 558 | return get_check(out_str); | ^ moria1.c:549:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 549 | int verify(prompt, item) | ^ In file included from moria1.c:19: ./externs.h:1017:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1017 | int verify(); | ^ moria1.c:617:7: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 617 | prt(" ESC: exit", 1, scr_left); | ^ moria1.c:618:7: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 618 | prt(" w : wear or wield object", 2, scr_left); | ^ moria1.c:619:7: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 619 | prt(" t : take off item", 3, scr_left); | ^ moria1.c:620:7: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 620 | prt(" d : drop object", 4, scr_left); | ^ moria1.c:621:7: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 621 | prt(" x : exchange weapons", 5, scr_left); | ^ moria1.c:622:7: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 622 | prt(" i : inventory of pack", 6, scr_left); | ^ moria1.c:623:7: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 623 | prt(" e : list used equipment", 7, scr_left); | ^ moria1.c:644:14: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 644 | erase_line(scr_base, scr_left); | ^ moria1.c:649:16: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 649 | erase_line(line, scr_left); | ^ moria1.c:601:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 601 | static void inven_screen(new_scr) | ^ moria1.c:679:36: warning: passing arguments to 'get_check' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 679 | if (command == ' ' || !get_check("Continuing with inventory command?")) | ^ moria1.c:709:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 709 | msg_print("You are not carrying anything."); | ^ moria1.c:715:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 715 | msg_print("You are not using any equipment."); | ^ moria1.c:721:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 721 | msg_print("You are not using any equipment."); | ^ moria1.c:725:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 725 | msg_print("You will have to drop something first."); | ^ moria1.c:735:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 735 | msg_print("But you're not carrying anything."); | ^ moria1.c:737:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 737 | msg_print("There's no room to drop anything here."); | ^ moria1.c:762:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 762 | msg_print("You have nothing to wear or wield."); | ^ moria1.c:773:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 773 | msg_print("But you are wielding no weapons."); | ^ moria1.c:780:14: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 780 | objdes(prt1, &inventory[INVEN_WIELD], FALSE); | ^ moria1.c:783:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 783 | msg_print(prt2); | ^ moria1.c:798:11: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 798 | objdes(prt2, &inventory[INVEN_WIELD], TRUE); | ^ moria1.c:799:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 799 | msg_print(strcat(prt1, prt2)); | ^ moria1.c:802:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 802 | msg_print("No primary weapon."); | ^ moria1.c:871:20: warning: passing arguments to 'get_com' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 871 | if (!get_com(prt1, &which)) | ^ moria1.c:944:19: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 944 | msg_print("Hmmm, it seems to be cursed."); | ^ moria1.c:948:24: warning: passing arguments to 'inven_check_num' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 948 | !inven_check_num(&inventory[item])) | ^ moria1.c:952:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 952 | msg_print("You can't carry it."); | ^ moria1.c:955:28: warning: passing arguments to 'get_check' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 955 | else if (get_check("You can't carry it. Drop it?")) | ^ moria1.c:964:17: warning: passing arguments to 'inven_drop' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 964 | inven_drop(item, TRUE); | ^ moria1.c:973:25: warning: passing arguments to 'inven_carry' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 973 | slot = inven_carry(&inventory[item]); | ^ moria1.c:1014:23: warning: passing arguments to 'get_com' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1014 | if (!get_com( | ^ moria1.c:1040:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1040 | msg_print("IMPOSSIBLE: I don't see how you can use that."); | ^ moria1.c:1052:13: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1052 | objdes(prt1, &inventory[slot], FALSE); | ^ moria1.c:1058:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1058 | msg_print(strcat(prt2, "appears to be cursed.")); | ^ moria1.c:1063:28: warning: passing arguments to 'inven_check_num' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1063 | !inven_check_num(&inventory[slot])) | ^ moria1.c:1067:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1067 | msg_print("You will have to drop something first."); | ^ moria1.c:1089:23: warning: passing arguments to 'inven_destroy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1089 | inven_destroy(item); /* Subtracts weight */ | ^ moria1.c:1097:24: warning: passing arguments to 'inven_carry' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1097 | tmp = inven_carry(i_ptr); | ^ moria1.c:1116:16: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1116 | objdes(prt2, i_ptr, TRUE); | ^ moria1.c:1126:19: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1126 | msg_print(prt1); | ^ moria1.c:1137:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1137 | msg_print("Oops! It feels deathly cold!"); | ^ moria1.c:1138:19: warning: passing arguments to 'add_inscribe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1138 | add_inscribe(i_ptr, ID_DAMD); | ^ moria1.c:1149:16: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1149 | objdes(prt1, &inventory[item], TRUE); | ^ moria1.c:1153:13: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1153 | prt(prt2, 0, 0); | ^ moria1.c:1159:17: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1159 | erase_line(MSG_LINE, 0); | ^ moria1.c:1170:20: warning: passing arguments to 'inven_drop' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1170 | inven_drop(item, query == 'y'); | ^ moria1.c:1195:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1195 | msg_print(CNIL); | ^ moria1.c:1215:11: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1215 | prt(prt1, 0, 0); | ^ moria1.c:1220:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1220 | prt("You have nothing you could wield.", 0, 0); | ^ moria1.c:1222:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1222 | prt("You could wield -", 0, 0); | ^ moria1.c:1227:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1227 | prt("You are not using anything.", 0, 0); | ^ moria1.c:1229:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1229 | prt("You are using -", 0, 0); | ^ moria1.c:1232:9: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1232 | prt("Allowed commands:", 0, 0); | ^ moria1.c:1233:14: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1233 | erase_line(scr_base, scr_left); | ^ moria1.c:1234:14: warning: passing arguments to 'put_buffer' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1234 | put_buffer("e/i/t/w/x/d/?/ESC:", scr_base, 60); | ^ moria1.c:1236:14: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1236 | erase_line(scr_base, scr_left); | ^ moria1.c:655:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 655 | void inven_command(command) | ^ In file included from moria1.c:19: ./externs.h:1018:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1018 | void inven_command(); | ^ moria1.c:1302:7: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1302 | prt(out_val, 0, 0); | ^ moria1.c:1320:13: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1320 | prt("But you're not using anything -more-",0,0); | ^ moria1.c:1333:21: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1333 | erase_line(j, 0); | ^ moria1.c:1338:9: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1338 | prt(out_val, 0, 0); | ^ moria1.c:1344:11: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1344 | prt("But you're not carrying anything -more-",0,0); | ^ moria1.c:1357:22: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1357 | erase_line (j, 0); | ^ moria1.c:1420:19: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1420 | msg_print (message); | ^ moria1.c:1434:17: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1434 | erase_line(MSG_LINE, 0); | ^ moria1.c:1437:8: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1437 | prt("You are not carrying anything.", 0, 0); | ^ moria1.c:1247:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1247 | int get_item(com_val, pmt, i, j, mask, message) | ^ In file included from moria1.c:19: ./externs.h:1019:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1019 | int get_item(); | ^ moria1.c:1458:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1458 | static char map_roguedir(comval) | ^ moria1.c:1518:19: warning: passing arguments to 'get_com' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1518 | if (!get_com(prompt, &command)) | ^ moria1.c:1497:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1497 | int get_dir(prompt, dir) | ^ In file included from moria1.c:19: ./externs.h:1021:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1021 | int get_dir(); | ^ moria1.c:1552:19: warning: passing arguments to 'get_com' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1552 | if (!get_com(prompt, &command)) | ^ moria1.c:1541:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1541 | int get_alldir(prompt, dir) | ^ In file included from moria1.c:19: ./externs.h:1022:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1022 | int get_alldir(); | ^ moria1.c:1571:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1571 | void move_rec(y1, x1, y2, x2) | ^ In file included from moria1.c:19: ./externs.h:1023:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1023 | void move_rec(); | ^ moria1.c:1613:22: warning: passing arguments to 'loc_symbol' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1613 | print(loc_symbol(i, j), i, j); | ^ moria1.c:1613:11: warning: passing arguments to 'print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1613 | print(loc_symbol(i, j), i, j); | ^ moria1.c:1584:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1584 | void light_room(y, x) | ^ In file included from moria1.c:19: ./externs.h:1024:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1024 | void light_room(); | ^ moria1.c:1623:21: warning: passing arguments to 'panel_contains' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1623 | if (panel_contains(y, x)) | ^ moria1.c:1624:21: warning: passing arguments to 'loc_symbol' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1624 | print(loc_symbol(y, x), y, x); | ^ moria1.c:1624:10: warning: passing arguments to 'print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1624 | print(loc_symbol(y, x), y, x); | ^ moria1.c:1620:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1620 | void lite_spot(y, x) | ^ In file included from moria1.c:19: ./externs.h:1025:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1025 | void lite_spot(); | ^ moria1.c:1689:23: warning: passing arguments to 'loc_symbol' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1689 | print(loc_symbol(i, j), i, j); | ^ moria1.c:1689:12: warning: passing arguments to 'print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1689 | print(loc_symbol(i, j), i, j); | ^ moria1.c:1630:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1630 | static void sub1_move_light(y1, x1, y2, x2) | ^ moria1.c:1707:22: warning: passing arguments to 'loc_symbol' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1707 | print(loc_symbol(i, j), i, j); | ^ moria1.c:1707:11: warning: passing arguments to 'print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1707 | print(loc_symbol(i, j), i, j); | ^ moria1.c:1712:21: warning: passing arguments to 'loc_symbol' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1712 | print(loc_symbol(y1, x1), y1, x1); | ^ moria1.c:1712:10: warning: passing arguments to 'print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1712 | print(loc_symbol(y1, x1), y1, x1); | ^ moria1.c:1715:10: warning: passing arguments to 'print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1715 | print('@', y2, x2); | ^ moria1.c:1695:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1695 | static void sub3_move_light(y1, x1, y2, x2) | ^ moria1.c:1721:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1721 | void move_light(y1, x1, y2, x2) | ^ In file included from moria1.c:19: ./externs.h:1026:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1026 | void move_light(); | ^ moria1.c:1734:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1734 | void disturb(s, l) | ^ In file included from moria1.c:19: ./externs.h:1027:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1027 | void disturb(); | ^ moria1.c:1793:10: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1793 | prt("Rest for how long? ", 0, 0); | ^ moria1.c:1795:21: warning: passing arguments to 'get_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1795 | if (get_string(rest_str, 0, 19, 5)) | ^ moria1.c:1814:11: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1814 | prt ("Press any key to stop resting...", 0, 0); | ^ moria1.c:1820:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1820 | msg_print ("Invalid rest count."); | ^ moria1.c:1821:17: warning: passing arguments to 'erase_line' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1821 | erase_line(MSG_LINE, 0); | ^ moria1.c:1839:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1839 | msg_print(CNIL); /* flush last message, or delete "press any key" message */ | ^ moria1.c:1855:17: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1855 | die = randint (20); | ^ moria1.c:1857:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1857 | || ((i > 0) && (randint (i) > ac)))) /* normal hit */ | ^ moria1.c:1845:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1845 | int test_hit(bth, level, pth, ac, attack_type) | ^ In file included from moria1.c:19: ./externs.h:1032:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1032 | int test_hit(); | ^ moria1.c:1866:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1866 | void take_hit(damage, hit_from) | ^ In file included from moria1.c:19: ./externs.h:1033:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1033 | void take_hit(); | ^ 145 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c moria2.c In file included from moria2.c:14: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from moria2.c:14: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ moria2.c:37:16: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | lite_spot(y, x); | ^ moria2.c:45:16: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 45 | lite_spot(y, x); | ^ moria2.c:26:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | void change_trap(y, x) | ^ In file included from moria2.c:14: ./externs.h:1036:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1036 | void change_trap(); | ^ moria2.c:69:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | if (randint(100) < chance) /* always in_bounds here */ | ^ moria2.c:79:11: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | objdes(tmp_str2, t_ptr, TRUE); | ^ moria2.c:81:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | msg_print(tmp_str); | ^ moria2.c:88:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | msg_print("You have found a secret door."); | ^ moria2.c:97:20: warning: passing arguments to 'known2_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | if (!known2_p(t_ptr)) | ^ moria2.c:99:10: warning: passing arguments to 'known2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | known2(t_ptr); | ^ moria2.c:100:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | msg_print("You have discovered a trap on the chest!"); | ^ moria2.c:103:18: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | msg_print("The chest is trapped!"); | ^ moria2.c:102:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 102 | else | ^ moria2.c:51:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | void search(y, x, chance) | ^ In file included from moria2.c:14: ./externs.h:1037:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1037 | void search(); | ^ moria2.c:240:13: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 240 | if (!mmove(dir, &row, &col)) | ^ moria2.c:253:16: warning: passing arguments to 'see_wall' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 253 | if (see_wall(cycle[i+1], char_row, char_col)) | ^ moria2.c:258:21: warning: passing arguments to 'see_wall' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 258 | else if (see_wall(cycle[i+1], row, col)) | ^ moria2.c:263:16: warning: passing arguments to 'see_wall' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 263 | if (see_wall(cycle[i-1], char_row, char_col)) | ^ moria2.c:268:21: warning: passing arguments to 'see_wall' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 268 | else if (see_wall(cycle[i-1], row, col)) | ^ moria2.c:286:25: warning: passing arguments to 'see_wall' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 286 | else if (see_wall(cycle[i], row, col)) | ^ moria2.c:306:21: warning: passing arguments to 'loc_symbol' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 306 | print(loc_symbol(char_row, char_col), char_row, char_col); | ^ moria2.c:306:10: warning: passing arguments to 'print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 306 | print(loc_symbol(char_row, char_col), char_row, char_col); | ^ moria2.c:308:12: warning: passing arguments to 'move_char' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 308 | move_char(dir, TRUE); | ^ moria2.c:232:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 232 | void find_init(dir) | ^ In file included from moria2.c:14: ./externs.h:1038:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1038 | void find_init(); | ^ moria2.c:318:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 318 | msg_print("You stop running to catch your breath."); | ^ moria2.c:322:14: warning: passing arguments to 'move_char' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 322 | move_char(find_direction, TRUE); | ^ moria2.c:331:17: warning: passing arguments to 'move_light' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 331 | move_light(char_row, char_col, char_row, char_col); | ^ moria2.c:341:13: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 341 | if (!mmove(dir, &y, &x)) /* check to see if movement there possible */ | ^ moria2.c:349:27: warning: passing arguments to 'loc_symbol' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 349 | else if ((c = loc_symbol(y, x)) == '#' || c == '%') | ^ moria2.c:336:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 336 | static int see_wall(dir, y, x) | ^ moria2.c:20:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 20 | static int see_wall(); | ^ moria2.c:361:13: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 361 | if (!mmove(dir, &y, &x)) /* check to see if movement there possible */ | ^ moria2.c:363:22: warning: passing arguments to 'loc_symbol' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 363 | else if (loc_symbol(y, x) == ' ') | ^ moria2.c:358:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 358 | static int see_nothing(dir, y, x) | ^ moria2.c:390:13: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 390 | if (mmove(newdir, &row, &col)) | ^ moria2.c:516:20: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 516 | (void) mmove(option, &row, &col); | ^ moria2.c:371:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 371 | void area_affect(dir, y, x) | ^ In file included from moria2.c:14: ./externs.h:1041:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1041 | void area_affect(); | ^ moria2.c:599:22: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 599 | j = tmp[randint(i) - 1]; | ^ moria2.c:603:10: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 603 | objdes(tmp_str, &inventory[j], FALSE); | ^ moria2.c:605:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 605 | msg_print(out_val); | ^ moria2.c:610:10: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 610 | objdes(tmp_str, &inventory[j], FALSE); | ^ moria2.c:612:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 612 | msg_print(out_val); | ^ moria2.c:556:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 556 | int minus_ac(typ_dam) | ^ In file included from moria2.c:14: ./externs.h:1042:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1042 | int minus_ac(); | ^ moria2.c:635:21: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 635 | take_hit(randint(8), kb_str); | ^ moria2.c:635:13: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 635 | take_hit(randint(8), kb_str); | ^ moria2.c:636:19: warning: passing arguments to 'inven_damage' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 636 | if (inven_damage(set_corrodes, 5) > 0) | ^ moria2.c:637:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 637 | msg_print("There is an acrid smell coming from your pack."); | ^ moria2.c:623:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 623 | void corrode_gas(kb_str) | ^ In file included from moria2.c:14: ./externs.h:1043:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1043 | void corrode_gas(); | ^ moria2.c:646:11: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 646 | take_hit(dam, kb_str); | ^ moria2.c:647:36: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 647 | py.flags.poisoned += 12 + randint(dam); | ^ moria2.c:642:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 642 | void poison_gas(dam, kb_str) | ^ In file included from moria2.c:14: ./externs.h:1044:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1044 | void poison_gas(); | ^ moria2.c:660:11: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 660 | take_hit(dam, kb_str); | ^ moria2.c:661:19: warning: passing arguments to 'inven_damage' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 661 | if (inven_damage(set_flammable, 3) > 0) | ^ moria2.c:662:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 662 | msg_print("There is smoke coming from your pack!"); | ^ moria2.c:652:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 652 | void fire_dam(dam, kb_str) | ^ In file included from moria2.c:14: ./externs.h:1045:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1045 | void fire_dam(); | ^ moria2.c:675:11: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 675 | take_hit(dam, kb_str); | ^ moria2.c:676:19: warning: passing arguments to 'inven_damage' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 676 | if (inven_damage(set_frost_destroy, 5) > 0) | ^ moria2.c:677:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 677 | msg_print("Something shatters inside your pack!"); | ^ moria2.c:667:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 667 | void cold_dam(dam, kb_str) | ^ In file included from moria2.c:14: ./externs.h:1046:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1046 | void cold_dam(); | ^ moria2.c:687:13: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 687 | take_hit((dam / 3), kb_str); | ^ moria2.c:689:13: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 689 | take_hit(dam, kb_str); | ^ moria2.c:690:19: warning: passing arguments to 'inven_damage' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 690 | if (inven_damage(set_lightning_destroy, 3) > 0) | ^ moria2.c:691:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 691 | msg_print("There are sparks coming from your pack!"); | ^ moria2.c:682:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 682 | void light_dam(dam, kb_str) | ^ In file included from moria2.c:14: ./externs.h:1047:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1047 | void light_dam(); | ^ moria2.c:714:12: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 714 | take_hit (dam / (flag + 1), kb_str); | ^ moria2.c:715:19: warning: passing arguments to 'inven_damage' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 715 | if (inven_damage(set_acid_affect, 3) > 0) | ^ moria2.c:716:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 716 | msg_print("There is an acrid smell coming from your pack!"); | ^ moria2.c:696:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 696 | void acid_dam(dam, kb_str) | ^ In file included from moria2.c:14: ./externs.h:1048:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1048 | void acid_dam(); | ^ 80 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c moria3.c In file included from moria3.c:16: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from moria3.c:16: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ moria3.c:44:14: warning: passing arguments to 'change_trap' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | change_trap(y, x); | ^ moria3.c:48:17: warning: passing arguments to 'pdamroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | dam = pdamroll(t_ptr->damage); | ^ moria3.c:52:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | msg_print("You fell into a pit!"); | ^ moria3.c:54:11: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | msg_print("You gently float down."); | ^ moria3.c:57:8: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | objdes(tmp, t_ptr, TRUE); | ^ moria3.c:58:10: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | take_hit(dam, tmp); | ^ moria3.c:62:19: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | if (test_hit(125, 0, 0, p_ptr->pac+p_ptr->ptoac, CLA_MISC_HIT)) | ^ moria3.c:64:10: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | objdes(tmp, t_ptr, TRUE); | ^ moria3.c:65:12: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 65 | take_hit(dam, tmp); | ^ moria3.c:66:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | msg_print("An arrow hits you."); | ^ moria3.c:69:11: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | msg_print("An arrow barely misses you."); | ^ moria3.c:72:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | msg_print("You fell into a covered pit."); | ^ moria3.c:74:11: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | msg_print("You gently float down."); | ^ moria3.c:77:8: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | objdes(tmp, t_ptr, TRUE); | ^ moria3.c:78:10: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | take_hit(dam, tmp); | ^ moria3.c:80:17: warning: passing arguments to 'place_trap' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | place_trap(y, x, 0); | ^ moria3.c:83:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | msg_print("You fell through a trap door!"); | ^ moria3.c:87:11: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | msg_print("You gently float down."); | ^ moria3.c:90:10: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | objdes(tmp, t_ptr, TRUE); | ^ moria3.c:91:12: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | take_hit(dam, tmp); | ^ moria3.c:95:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | msg_print (CNIL); | ^ moria3.c:100:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | msg_print("A strange white mist surrounds you!"); | ^ moria3.c:102:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | msg_print("You are unaffected."); | ^ moria3.c:105:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | msg_print("You fall asleep."); | ^ moria3.c:106:37: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | py.flags.paralysis += randint(10) + 4; | ^ moria3.c:111:27: warning: passing arguments to 'delete_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | (void) delete_object(y, x); | ^ moria3.c:112:19: warning: passing arguments to 'place_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | place_object(y, x, FALSE); | ^ moria3.c:113:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 113 | msg_print("Hmmm, there was something under this rock."); | ^ moria3.c:116:19: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | if (test_hit(125, 0, 0, p_ptr->pac+p_ptr->ptoac, CLA_MISC_HIT)) | ^ moria3.c:120:23: warning: passing arguments to 'dec_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 120 | (void) dec_stat(A_STR); | ^ moria3.c:121:14: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 121 | objdes(tmp, t_ptr, TRUE); | ^ moria3.c:122:16: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | take_hit(dam, tmp); | ^ moria3.c:123:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | msg_print("A small dart weakens you!"); | ^ moria3.c:126:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | msg_print("A small dart hits you."); | ^ moria3.c:129:11: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | msg_print("A small dart barely misses you."); | ^ moria3.c:133:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 133 | msg_print("You hit a teleport trap!"); | ^ moria3.c:135:18: warning: passing arguments to 'move_light' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 135 | move_light (y, x, y, x); | ^ moria3.c:138:15: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 138 | take_hit(dam, "a falling rock"); | ^ moria3.c:139:27: warning: passing arguments to 'delete_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | (void) delete_object(y, x); | ^ moria3.c:140:19: warning: passing arguments to 'place_rubble' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 140 | place_rubble(y, x); | ^ moria3.c:141:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 141 | msg_print("You are hit by falling rock."); | ^ moria3.c:146:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | msg_print("A strange red gas surrounds you."); | ^ moria3.c:147:18: warning: passing arguments to 'corrode_gas' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 147 | corrode_gas("corrosion gas"); | ^ moria3.c:150:27: warning: passing arguments to 'delete_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 150 | (void) delete_object(y, x); /* Rune disappears. */ | ^ moria3.c:151:25: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 151 | num = 2 + randint (3); | ^ moria3.c:156:25: warning: passing arguments to 'summon_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 156 | (void) summon_monster(&ty, &tx, FALSE); | ^ moria3.c:160:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 160 | msg_print("You are enveloped in flames!"); | ^ moria3.c:161:15: warning: passing arguments to 'fire_dam' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 161 | fire_dam(dam, "a fire trap"); | ^ moria3.c:164:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 164 | msg_print("You are splashed with acid!"); | ^ moria3.c:165:15: warning: passing arguments to 'acid_dam' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 165 | acid_dam(dam, "an acid trap"); | ^ moria3.c:168:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 168 | msg_print("A pungent green gas surrounds you!"); | ^ moria3.c:169:17: warning: passing arguments to 'poison_gas' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 169 | poison_gas(dam, "a poison gas trap"); | ^ moria3.c:172:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 172 | msg_print("A black gas surrounds you!"); | ^ moria3.c:173:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 173 | py.flags.blind += randint(50) + 50; | ^ moria3.c:176:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 176 | msg_print("A gas of scintillating colors surrounds you!"); | ^ moria3.c:177:35: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 177 | py.flags.confused += randint(15) + 15; | ^ moria3.c:180:19: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 180 | if (test_hit(125, 0, 0, p_ptr->pac+p_ptr->ptoac, CLA_MISC_HIT)) | ^ moria3.c:182:10: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | objdes(tmp, t_ptr, TRUE); | ^ moria3.c:183:12: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 183 | take_hit(dam, tmp); | ^ moria3.c:184:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 184 | msg_print("A small dart hits you!"); | ^ moria3.c:186:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 186 | msg_print("You are unaffected."); | ^ moria3.c:188:30: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 188 | py.flags.slow += randint(20) + 10; | ^ moria3.c:191:11: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 191 | msg_print("A small dart barely misses you."); | ^ moria3.c:194:19: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 194 | if (test_hit(125, 0, 0, p_ptr->pac+p_ptr->ptoac, CLA_MISC_HIT)) | ^ moria3.c:198:23: warning: passing arguments to 'dec_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 198 | (void) dec_stat(A_CON); | ^ moria3.c:199:14: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 199 | objdes(tmp, t_ptr, TRUE); | ^ moria3.c:200:16: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 200 | take_hit(dam, tmp); | ^ moria3.c:201:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 201 | msg_print("A small dart saps your health!"); | ^ moria3.c:204:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 204 | msg_print("A small dart hits you."); | ^ moria3.c:207:11: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 207 | msg_print("A small dart barely misses you."); | ^ moria3.c:216:18: warning: passing arguments to 'enter_store' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 216 | enter_store(0); | ^ moria3.c:219:18: warning: passing arguments to 'enter_store' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 219 | enter_store(1); | ^ moria3.c:222:18: warning: passing arguments to 'enter_store' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 222 | enter_store(2); | ^ moria3.c:225:18: warning: passing arguments to 'enter_store' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 225 | enter_store(3); | ^ moria3.c:228:18: warning: passing arguments to 'enter_store' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 228 | enter_store(4); | ^ moria3.c:231:18: warning: passing arguments to 'enter_store' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 231 | enter_store(5); | ^ moria3.c:235:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 235 | msg_print("Unknown trap value."); | ^ moria3.c:34:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | static void hit_trap(y, x) | ^ moria3.c:258:24: warning: passing arguments to 'bit_pos' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 258 | first_spell = bit_pos(&j); | ^ moria3.c:264:18: warning: passing arguments to 'bit_pos' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 264 | k = bit_pos(&j); | ^ moria3.c:273:25: warning: passing arguments to 'get_spell' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 273 | result = get_spell(spell, i, sn, sc, prompt, first_spell); | ^ moria3.c:277:24: warning: passing arguments to 'get_check' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 277 | result = get_check("You summon your limited strength to cast \ | ^ moria3.c:280:24: warning: passing arguments to 'get_check' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 280 | result = get_check("The gods may think you presumptuous for \ | ^ moria3.c:245:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 245 | int cast_spell(prompt, item_val, sn, sc) | ^ In file included from moria3.c:16: ./externs.h:1051:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1051 | int cast_spell(); | ^ moria3.c:311:10: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 311 | objdes(tmp_str, i_ptr, TRUE); | ^ moria3.c:316:24: warning: passing arguments to 'delete_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 316 | (void) delete_object(y, x); | ^ moria3.c:317:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 317 | msg_print(out_val); | ^ moria3.c:321:23: warning: passing arguments to 'inven_check_num' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 321 | if (inven_check_num(i_ptr)) /* Too many objects? */ | ^ moria3.c:325:11: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 325 | objdes(tmp_str, i_ptr, TRUE); | ^ moria3.c:329:23: warning: passing arguments to 'get_check' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 329 | pickup = get_check(out_val); | ^ moria3.c:332:41: warning: passing arguments to 'inven_check_weight' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 332 | if (pickup && !inven_check_weight(i_ptr)) | ^ moria3.c:334:11: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 334 | objdes(tmp_str, i_ptr, TRUE); | ^ moria3.c:340:23: warning: passing arguments to 'get_check' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 340 | pickup = get_check(out_val); | ^ moria3.c:345:23: warning: passing arguments to 'inven_carry' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 345 | locn = inven_carry(i_ptr); | ^ moria3.c:346:11: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 346 | objdes(tmp_str, &inventory[locn], TRUE); | ^ moria3.c:348:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 348 | msg_print(out_val); | ^ moria3.c:349:25: warning: passing arguments to 'delete_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 349 | (void) delete_object(y, x); | ^ moria3.c:354:14: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 354 | objdes(tmp_str, i_ptr, TRUE); | ^ moria3.c:356:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 356 | msg_print(out_val); | ^ moria3.c:292:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 292 | static void carry(y, x, pickup) | ^ moria3.c:375:14: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 375 | lite_spot((int)m_ptr->fy, (int)m_ptr->fx); | ^ moria3.c:367:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 367 | void delete_monster(j) | ^ In file included from moria3.c:16: ./externs.h:1052:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1052 | void delete_monster(); | ^ moria3.c:408:14: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 408 | lite_spot((int)m_ptr->fy, (int)m_ptr->fx); | ^ moria3.c:396:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 396 | void fix1_delete_monster(j) | ^ In file included from moria3.c:16: ./externs.h:1053:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1053 | void fix1_delete_monster(); | ^ moria3.c:415:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 415 | void fix2_delete_monster(j) | ^ In file included from moria3.c:16: ./externs.h:1054:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1054 | void fix2_delete_monster(); | ^ moria3.c:449:23: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 449 | j = y - 3 + randint(5); | ^ moria3.c:450:23: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 450 | k = x - 3 + randint(5); | ^ moria3.c:451:17: warning: passing arguments to 'in_bounds' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 451 | if (in_bounds(j, k) && los(y, x, j, k)) | ^ moria3.c:451:30: warning: passing arguments to 'los' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 451 | if (in_bounds(j, k) && los(y, x, j, k)) | ^ moria3.c:459:20: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 459 | if (randint(100) < 50) | ^ moria3.c:465:19: warning: passing arguments to 'place_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 465 | place_object(j, k, (typ >= 4)); | ^ moria3.c:467:17: warning: passing arguments to 'place_gold' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 467 | place_gold(j, k); | ^ moria3.c:468:14: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 468 | lite_spot(j, k); | ^ moria3.c:469:19: warning: passing arguments to 'test_light' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 469 | if (test_light(j, k)) | ^ moria3.c:432:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 432 | static int summon_object(y, x, num, typ) | ^ moria3.c:494:8: warning: passing arguments to 'pusht' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 494 | pusht(c_ptr->tptr); | ^ moria3.c:497:12: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 497 | lite_spot(y, x); | ^ moria3.c:498:17: warning: passing arguments to 'test_light' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 498 | if (test_light(y, x)) | ^ moria3.c:485:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 485 | int delete_object(y, x) | ^ In file included from moria3.c:16: ./externs.h:1055:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1055 | int delete_object(); | ^ moria3.c:532:41: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 532 | if ((flags & CM_60_RANDOM) && (randint(100) < 60)) | ^ moria3.c:534:41: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 534 | if ((flags & CM_90_RANDOM) && (randint(100) < 90)) | ^ moria3.c:537:22: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 537 | number += randint(2); | ^ moria3.c:539:22: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 539 | number += damroll(2, 2); | ^ moria3.c:541:22: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 541 | number += damroll(4, 2); | ^ moria3.c:593:11: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 593 | msg_print("*** CONGRATULATIONS *** You have won the game."); | ^ moria3.c:594:11: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 594 | msg_print("You cannot save this game, but you may retire when ready."); | ^ moria3.c:511:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 511 | int32u monster_death(y, x, flags) | ^ In file included from moria3.c:16: ./externs.h:1056: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 definition [-Wdeprecated-non-prototype] 1056 | int32u monster_death(); | ^ moria3.c:636:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 636 | int mon_take_hit(monptr, dam) | ^ In file included from moria3.c:16: ./externs.h:1057:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1057 | int mon_take_hit(); | ^ moria3.c:736:25: warning: passing arguments to 'attack_blows' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 736 | blows = attack_blows((int)i_ptr->weight, &tot_tohit); | ^ moria3.c:757:19: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 757 | if (test_hit(base_tohit, (int)p_ptr->lev, tot_tohit, | ^ moria3.c:761:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 761 | msg_print(out_val); | ^ moria3.c:764:20: warning: passing arguments to 'pdamroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 764 | k = pdamroll(i_ptr->damage); | ^ moria3.c:765:19: warning: passing arguments to 'tot_dam' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 765 | k = tot_dam(i_ptr, k, monptr); | ^ moria3.c:766:25: warning: passing arguments to 'critical_blow' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 766 | k = critical_blow((int)i_ptr->weight, tot_tohit, k, CLA_BTH); | ^ moria3.c:770:19: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 770 | k = damroll(1, 1); | ^ moria3.c:771:25: warning: passing arguments to 'critical_blow' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 771 | k = critical_blow(1, 0, k, CLA_BTH); | ^ moria3.c:779:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 779 | msg_print("Your hands stop glowing."); | ^ moria3.c:781:16: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 781 | || (randint(MAX_MONS_LEVEL) < c_list[monptr].level)) | ^ moria3.c:789:43: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 789 | m_list[crptr].confused = 2 + randint(16); | ^ moria3.c:791:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 791 | msg_print(out_val); | ^ moria3.c:792:39: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 792 | if (m_list[crptr].ml && randint(4) == 1) | ^ moria3.c:801:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 801 | msg_print(out_val); | ^ moria3.c:819:15: warning: passing arguments to 'py_bonuses' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 819 | py_bonuses(i_ptr, -1); | ^ moria3.c:820:12: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 820 | invcopy(i_ptr, OBJ_NOTHING); | ^ moria3.c:828:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 828 | msg_print(out_val); | ^ moria3.c:714:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 714 | void py_attack(y, x) | ^ In file included from moria3.c:16: ./externs.h:1058:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1058 | void py_attack(); | ^ moria3.c:847:15: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 847 | (randint(4) > 1) && /* 75% random movement */ | ^ moria3.c:850:20: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 850 | dir = randint(9); | ^ moria3.c:855:12: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 855 | if (mmove(dir, &y, &x)) /* Legal move? */ | ^ moria3.c:874:16: warning: passing arguments to 'move_rec' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 874 | move_rec(old_row, old_col, char_row, char_col); | ^ moria3.c:876:21: warning: passing arguments to 'get_panel' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 876 | if (get_panel(char_row, char_col, FALSE)) | ^ moria3.c:880:14: warning: passing arguments to 'area_affect' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 880 | area_affect(dir, char_row, char_col); | ^ moria3.c:883:42: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 883 | if ((py.misc.fos <= 1) || (randint(py.misc.fos) == 1) || | ^ moria3.c:885:9: warning: passing arguments to 'search' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 885 | search(char_row, char_col, py.misc.srh); | ^ moria3.c:890:17: warning: passing arguments to 'light_room' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 890 | light_room(char_row, char_col); | ^ moria3.c:899:14: warning: passing arguments to 'light_room' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 899 | light_room(i, j); | ^ moria3.c:902:18: warning: passing arguments to 'move_light' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 902 | move_light(old_row, old_col, char_row, char_col); | ^ moria3.c:911:17: warning: passing arguments to 'move_rec' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 911 | move_rec(char_row, char_col, old_row, old_col); | ^ moria3.c:912:19: warning: passing arguments to 'move_light' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 912 | move_light(char_row, char_col, old_row, old_col); | ^ moria3.c:933:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 933 | msg_print("There is rubble blocking your way."); | ^ moria3.c:935:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 935 | msg_print("There is a closed door blocking your way."); | ^ moria3.c:957:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 957 | msg_print("You are too afraid!"); | ^ moria3.c:838:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 838 | void move_char(dir, do_pickup) | ^ In file included from moria3.c:16: ./externs.h:1059:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1059 | void move_char(); | ^ moria3.c:976:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 976 | msg_print("A small needle has pricked you!"); | ^ moria3.c:979:19: warning: passing arguments to 'dec_stat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 979 | (void) dec_stat(A_STR); | ^ moria3.c:980:20: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 980 | take_hit(damroll(1, 4), "a poison needle"); | ^ moria3.c:980:12: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 980 | take_hit(damroll(1, 4), "a poison needle"); | ^ moria3.c:981:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 981 | msg_print("You feel weakened!"); | ^ moria3.c:984:11: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 984 | msg_print("You are unaffected."); | ^ moria3.c:988:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 988 | msg_print("A small needle has pricked you!"); | ^ moria3.c:989:23: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 989 | take_hit(damroll(1, 6), "a poison needle"); | ^ moria3.c:989:15: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 989 | take_hit(damroll(1, 6), "a poison needle"); | ^ moria3.c:990:40: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 990 | py.flags.poisoned += 10 + randint(20); | ^ moria3.c:994:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 994 | msg_print("A puff of yellow gas surrounds you!"); | ^ moria3.c:996:11: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 996 | msg_print("You are unaffected."); | ^ moria3.c:999:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 999 | msg_print("You choke and pass out."); | ^ moria3.c:1000:37: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1000 | py.flags.paralysis = 10 + randint(20); | ^ moria3.c:1009:25: warning: passing arguments to 'summon_monster' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1009 | (void) summon_monster(&j, &k, FALSE); | ^ moria3.c:1014:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1014 | msg_print("There is a sudden explosion!"); | ^ moria3.c:1016:23: warning: passing arguments to 'damroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1016 | take_hit(damroll(5, 8), "an exploding chest"); | ^ moria3.c:1016:15: warning: passing arguments to 'take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1016 | take_hit(damroll(5, 8), "an exploding chest"); | ^ moria3.c:966:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 966 | void chest_trap(y, x) | ^ In file included from moria3.c:16: ./externs.h:1060:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1060 | void chest_trap(); | ^ moria3.c:1037:14: warning: passing arguments to 'get_dir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1037 | if (get_dir(CNIL, &dir)) | ^ moria3.c:1039:19: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1039 | (void) mmove(dir, &y, &x); | ^ moria3.c:1052:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1052 | msg_print(out_val); | ^ moria3.c:1062:47: warning: passing arguments to 'stat_adj' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1062 | i = p_ptr->disarm + 2*todis_adj() + stat_adj(A_INT) | ^ moria3.c:1066:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1066 | msg_print("You are too confused to pick the lock."); | ^ moria3.c:1067:35: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1067 | else if ((i-t_ptr->p1) > randint(100)) | ^ moria3.c:1069:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1069 | msg_print("You have picked the lock."); | ^ moria3.c:1075:20: warning: passing arguments to 'count_msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1075 | count_msg_print("You failed to pick the lock."); | ^ moria3.c:1078:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1078 | msg_print("It appears to be stuck."); | ^ moria3.c:1081:10: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1081 | invcopy(&t_list[c_ptr->tptr], OBJ_OPEN_DOOR); | ^ moria3.c:1083:12: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1083 | lite_spot(y, x); | ^ moria3.c:1091:50: warning: passing arguments to 'stat_adj' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1091 | i = p_ptr->disarm + 2*todis_adj() + stat_adj(A_INT) | ^ moria3.c:1097:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1097 | msg_print("You are too confused to pick the lock."); | ^ moria3.c:1098:48: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1098 | else if ((i-(int)t_ptr->level) > randint(100)) | ^ moria3.c:1100:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1100 | msg_print("You have picked the lock."); | ^ moria3.c:1106:18: warning: passing arguments to 'count_msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1106 | count_msg_print("You failed to pick the lock."); | ^ moria3.c:1113:9: warning: passing arguments to 'known2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1113 | known2(t_ptr); | ^ moria3.c:1146:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1146 | msg_print("I do not see anything you can open there."); | ^ moria3.c:1163:14: warning: passing arguments to 'get_dir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1163 | if (get_dir(CNIL, &dir)) | ^ moria3.c:1165:19: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1165 | (void) mmove(dir, &y, &x); | ^ moria3.c:1173:10: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1173 | invcopy(&t_list[c_ptr->tptr], OBJ_CLOSED_DOOR); | ^ moria3.c:1175:12: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1175 | lite_spot(y, x); | ^ moria3.c:1178:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1178 | msg_print("The door appears to be broken."); | ^ moria3.c:1187:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1187 | msg_print(out_val); | ^ moria3.c:1196:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1196 | msg_print("I do not see anything you can close there."); | ^ moria3.c:1243:25: warning: passing arguments to 'panel_contains' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1243 | if (panel_contains(y, x)) | ^ moria3.c:1245:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1245 | msg_print("You have found something!"); | ^ moria3.c:1246:16: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1246 | lite_spot(y, x); | ^ moria3.c:1205:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1205 | int twall(y, x, t1, t2) | ^ In file included from moria3.c:16: ./externs.h:1063:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1063 | int twall(); | ^ 224 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c moria4.c In file included from moria4.c:17: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from moria4.c:17: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ moria4.c:59:15: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | (randint(4) > 1)) /* 75% random movement */ | ^ moria4.c:60:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | dir = randint(9); | ^ moria4.c:63:15: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | (void) mmove(dir, &y, &x); | ^ moria4.c:80:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | msg_print ("Tunnel through what? Empty air?!?"); | ^ moria4.c:85:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | msg_print("You can't tunnel through that."); | ^ moria4.c:99:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | msg_print(out_val); | ^ moria4.c:103:11: warning: passing arguments to 'py_attack' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | py_attack(y, x); | ^ moria4.c:105:11: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | msg_print("You are too afraid!"); | ^ moria4.c:138:15: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 138 | i = randint(1200) + 80; | ^ moria4.c:139:13: warning: passing arguments to 'twall' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | if (twall(y, x, tabil, i)) | ^ moria4.c:140:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 140 | msg_print("You have finished the tunnel."); | ^ moria4.c:142:21: warning: passing arguments to 'count_msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 142 | count_msg_print("You tunnel into the granite wall."); | ^ moria4.c:145:15: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | i = randint(600) + 10; | ^ moria4.c:146:13: warning: passing arguments to 'twall' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | if (twall(y, x, tabil, i)) | ^ moria4.c:147:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 147 | msg_print("You have finished the tunnel."); | ^ moria4.c:149:21: warning: passing arguments to 'count_msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 149 | count_msg_print("You tunnel into the magma intrusion."); | ^ moria4.c:152:15: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 152 | i = randint(400) + 10; | ^ moria4.c:153:13: warning: passing arguments to 'twall' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | if (twall(y, x, tabil, i)) | ^ moria4.c:154:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 154 | msg_print("You have finished the tunnel."); | ^ moria4.c:156:21: warning: passing arguments to 'count_msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 156 | count_msg_print("You tunnel into the quartz vein."); | ^ moria4.c:159:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 159 | msg_print("This seems to be permanent rock."); | ^ moria4.c:168:24: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 168 | if (tabil > randint(180)) | ^ moria4.c:170:29: warning: passing arguments to 'delete_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | (void) delete_object(y, x); | ^ moria4.c:171:18: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 171 | msg_print("You have removed the rubble."); | ^ moria4.c:172:20: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 172 | if (randint(10) == 1) | ^ moria4.c:174:18: warning: passing arguments to 'place_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 174 | place_object(y, x, FALSE); | ^ moria4.c:175:20: warning: passing arguments to 'test_light' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | if (test_light(y, x)) | ^ moria4.c:176:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 176 | msg_print("You have found something!"); | ^ moria4.c:178:18: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 178 | lite_spot(y, x); | ^ moria4.c:181:22: warning: passing arguments to 'count_msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 181 | count_msg_print("You dig in the rubble."); | ^ moria4.c:186:20: warning: passing arguments to 'count_msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 186 | count_msg_print("You tunnel into the granite wall."); | ^ moria4.c:187:11: warning: passing arguments to 'search' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 187 | search(char_row, char_col, py.misc.srh); | ^ moria4.c:198:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 198 | msg_print("You dig with your hands, making no progress."); | ^ moria4.c:45:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 45 | void tunnel(dir) | ^ In file included from moria4.c:17: ./externs.h:1066:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1066 | void tunnel(); | ^ moria4.c:214:14: warning: passing arguments to 'get_dir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 214 | if (get_dir(CNIL, &dir)) | ^ moria4.c:216:19: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 216 | (void) mmove(dir, &y, &x); | ^ moria4.c:229:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 229 | msg_print(out_val); | ^ moria4.c:233:51: warning: passing arguments to 'stat_adj' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 233 | tot = py.misc.disarm + 2*todis_adj() + stat_adj(A_INT) | ^ moria4.c:246:41: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 246 | if ((tot + 100 - level) > randint(100)) | ^ moria4.c:248:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 248 | msg_print("You have disarmed the trap."); | ^ moria4.c:250:25: warning: passing arguments to 'delete_object' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 250 | (void) delete_object(y, x); | ^ moria4.c:254:14: warning: passing arguments to 'move_char' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 254 | move_char(dir, FALSE); | ^ moria4.c:259:38: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 259 | else if ((tot > 5) && (randint(tot) > 5)) | ^ moria4.c:260:18: warning: passing arguments to 'count_msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 260 | count_msg_print("You failed to disarm the trap."); | ^ moria4.c:263:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 263 | msg_print("You set the trap off!"); | ^ moria4.c:267:14: warning: passing arguments to 'move_char' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 267 | move_char(dir, FALSE); | ^ moria4.c:273:21: warning: passing arguments to 'known2_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 273 | if (!known2_p(i_ptr)) | ^ moria4.c:275:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 275 | msg_print("I don't see a trap."); | ^ moria4.c:280:32: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 280 | if ((tot - level) > randint(100)) | ^ moria4.c:287:18: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 287 | msg_print("You have disarmed the chest."); | ^ moria4.c:288:15: warning: passing arguments to 'known2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 288 | known2(i_ptr); | ^ moria4.c:292:35: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 292 | else if ((tot > 5) && (randint(tot) > 5)) | ^ moria4.c:293:22: warning: passing arguments to 'count_msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 293 | count_msg_print("You failed to disarm the chest."); | ^ moria4.c:296:18: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 296 | msg_print("You set a trap off!"); | ^ moria4.c:297:15: warning: passing arguments to 'known2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 297 | known2(i_ptr); | ^ moria4.c:298:19: warning: passing arguments to 'chest_trap' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 298 | chest_trap(y, x); | ^ moria4.c:303:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 303 | msg_print("The chest was not trapped."); | ^ moria4.c:315:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 315 | msg_print("I do not see anything to disarm there."); | ^ moria4.c:404:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 404 | msg_print("You can't see a damn thing!"); | ^ moria4.c:406:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 406 | msg_print("You can't believe what you are seeing! It's like a dream!"); | ^ moria4.c:407:22: warning: passing arguments to 'get_alldir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 407 | else if (get_alldir("Look which direction?", &dir)) | ^ moria4.c:413:19: warning: passing arguments to 'look_see' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 413 | if (look_see(0, 0, &dummy)) | ^ moria4.c:426:21: warning: passing arguments to 'look_ray' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 426 | if (look_ray(0, 2*GRADF-1, 1)) | ^ moria4.c:433:21: warning: passing arguments to 'look_ray' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 433 | if (look_ray(0, 2*GRADF, 2)) | ^ moria4.c:445:17: warning: passing arguments to 'look_ray' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 445 | if (look_ray(0, GRADF, 1)) | ^ moria4.c:451:25: warning: passing arguments to 'look_ray' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 451 | abort = look_ray(0, GRADF, 2); | ^ moria4.c:459:17: warning: passing arguments to 'look_ray' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 459 | if (look_ray(1, 2*GRADF, GRADF)) | ^ moria4.c:466:25: warning: passing arguments to 'look_ray' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 466 | abort = look_ray(1, 2*GRADF-1, GRADF); | ^ moria4.c:472:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 472 | msg_print("--Aborting look--"); | ^ moria4.c:478:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 478 | msg_print("That's all you see."); | ^ moria4.c:480:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 480 | msg_print("That's all you see in that direction."); | ^ moria4.c:483:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 483 | msg_print("You see nothing of interest."); | ^ moria4.c:485:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 485 | msg_print("You see nothing of interest in that direction."); | ^ moria4.c:542:15: warning: passing arguments to 'look_see' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 542 | if (look_see(x, y, &transparent)) | ^ moria4.c:564:16: warning: passing arguments to 'look_see' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 564 | if (look_see(x, y, &transparent)) | ^ moria4.c:576:16: warning: passing arguments to 'look_see' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 576 | if (look_see(x, y, &transparent)) | ^ moria4.c:508:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 508 | static int look_ray(y, from, to) | ^ moria4.c:38:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 38 | static int look_ray(); | ^ moria4.c:595:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 595 | msg_print(tmp_str); | ^ moria4.c:604:22: warning: passing arguments to 'panel_contains' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 604 | if (!panel_contains(y, x)) | ^ moria4.c:619:18: warning: passing arguments to 'is_a_vowel' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 619 | is_a_vowel( c_list[j].name[0] ) ? "an" : "a", | ^ moria4.c:622:10: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 622 | prt(out_val, 0, 0); | ^ moria4.c:623:27: warning: passing arguments to 'move_cursor_relative' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 623 | move_cursor_relative(y, x); | ^ moria4.c:628:23: warning: passing arguments to 'roff_recall' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 628 | query = roff_recall(j); | ^ moria4.c:640:14: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 640 | objdes(tmp_str, &t_list[c_ptr->tptr], TRUE); | ^ moria4.c:643:11: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 643 | prt(out_val, 0, 0); | ^ moria4.c:644:28: warning: passing arguments to 'move_cursor_relative' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 644 | move_cursor_relative(y, x); | ^ moria4.c:671:11: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 671 | prt(out_val, 0, 0); | ^ moria4.c:672:28: warning: passing arguments to 'move_cursor_relative' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 672 | move_cursor_relative(y, x); | ^ moria4.c:583:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 583 | static int look_see(x, y, transparent) | ^ moria4.c:39:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 39 | static int look_see(); | ^ moria4.c:711:18: warning: passing arguments to 'inven_destroy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 711 | inven_destroy(item_val); | ^ moria4.c:688:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 688 | static void inven_throw(item_val, t_ptr) | ^ moria4.c:729:19: warning: passing arguments to 'pdamroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 729 | *tdam = pdamroll(i_ptr->damage) + i_ptr->todam; | ^ moria4.c:717:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 717 | static void facts(i_ptr, tbth, tpth, tdam, tdis) | ^ moria4.c:824:14: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 824 | if (randint(10) > 1) | ^ moria4.c:828:17: warning: passing arguments to 'in_bounds' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 828 | if (in_bounds(i, j)) | ^ moria4.c:836:23: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 836 | i = y + randint(3) - 2; | ^ moria4.c:837:23: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 837 | j = x + randint(3) - 2; | ^ moria4.c:848:16: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 848 | lite_spot(i, j); | ^ moria4.c:852:13: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 852 | objdes(tmp_str, t_ptr, FALSE); | ^ moria4.c:854:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 854 | msg_print(out_val); | ^ moria4.c:811:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 811 | static void drop_throw(y, x, t_ptr) | ^ moria4.c:876:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 876 | msg_print("But you are not carrying anything."); | ^ moria4.c:879:20: warning: passing arguments to 'get_item' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 879 | else if (get_item(&item_val, "Fire/Throw which one?", 0, inven_ctr-1, CNIL, | ^ moria4.c:882:18: warning: passing arguments to 'get_dir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 882 | if (get_dir(CNIL, &dir)) | ^ moria4.c:884:15: warning: passing arguments to 'desc_remain' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 884 | desc_remain(item_val); | ^ moria4.c:887:17: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 887 | msg_print("You are confused."); | ^ moria4.c:890:18: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 890 | dir = randint(9); | ^ moria4.c:905:20: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 905 | (void) mmove(dir, &y, &x); | ^ moria4.c:907:17: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 907 | lite_spot(oldy, oldx); | ^ moria4.c:925:21: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 925 | if (test_hit(tbth, (int)py.misc.lev, tpth, | ^ moria4.c:929:12: warning: passing arguments to 'objdes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 929 | objdes(tmp_str, &throw_obj, FALSE); | ^ moria4.c:943:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 943 | msg_print(out_val); | ^ moria4.c:944:20: warning: passing arguments to 'tot_dam' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 944 | tdam = tot_dam(&throw_obj, tdam, i); | ^ moria4.c:945:26: warning: passing arguments to 'critical_blow' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 945 | tdam = critical_blow((int)throw_obj.weight, | ^ moria4.c:948:22: warning: passing arguments to 'mon_take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 948 | i = mon_take_hit((int)c_ptr->cptr, tdam); | ^ moria4.c:952:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 952 | msg_print("You have killed something!"); | ^ moria4.c:957:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 957 | msg_print(out_val); | ^ moria4.c:967:27: warning: passing arguments to 'panel_contains' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 967 | if (panel_contains(y, x) && (py.flags.blind < 1) | ^ moria4.c:970:11: warning: passing arguments to 'print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 970 | print(tchar, y, x); | ^ moria4.c:1015:15: warning: passing arguments to 'test_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1015 | if (test_hit(base_tohit, (int)py.misc.lev, | ^ moria4.c:1019:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1019 | msg_print(out_val); | ^ moria4.c:1020:19: warning: passing arguments to 'pdamroll' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1020 | k = pdamroll(inventory[INVEN_ARM].damage); | ^ moria4.c:1021:24: warning: passing arguments to 'critical_blow' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1021 | k = critical_blow((int)(inventory[INVEN_ARM].weight / 4 | ^ moria4.c:1027:23: warning: passing arguments to 'mon_take_hit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1027 | if (mon_take_hit(monster, k) >= 0) | ^ moria4.c:1030:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1030 | msg_print(out_val); | ^ moria4.c:1040:22: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1040 | if ((100 + randint(400) + randint(400)) | ^ moria4.c:1040:37: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1040 | if ((100 + randint(400) + randint(400)) | ^ moria4.c:1043:33: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1043 | m_ptr->stunned += randint(3) + 1; | ^ moria4.c:1049:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1049 | msg_print(out_val); | ^ moria4.c:1055:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1055 | msg_print(out_val); | ^ moria4.c:1057:14: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1057 | if (randint(150) > py.stats.use_stat[A_DEX]) | ^ moria4.c:1059:16: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1059 | msg_print("You are off balance."); | ^ moria4.c:1060:39: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1060 | py.flags.paralysis = 1 + randint(2); | ^ moria4.c:991:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 991 | static void py_bash(y, x) | ^ moria4.c:1096:14: warning: passing arguments to 'get_dir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1096 | if (get_dir(CNIL, &dir)) | ^ moria4.c:1100:13: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1100 | msg_print("You are confused."); | ^ moria4.c:1103:21: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1103 | dir = randint(9); | ^ moria4.c:1107:19: warning: passing arguments to 'mmove' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1107 | (void) mmove(dir, &y, &x); | ^ moria4.c:1112:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1112 | msg_print("You are afraid!"); | ^ moria4.c:1121:23: warning: passing arguments to 'count_msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1121 | count_msg_print("You smash into the door!"); | ^ moria4.c:1124:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1124 | if (randint(tmp*(20+abs(t_ptr->p1))) < 10*(tmp-abs(t_ptr->p1))) | ^ moria4.c:1126:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1126 | msg_print("The door crashes open!"); | ^ moria4.c:1127:12: warning: passing arguments to 'invcopy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1127 | invcopy(&t_list[c_ptr->tptr], OBJ_OPEN_DOOR); | ^ moria4.c:1128:28: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1128 | t_ptr->p1 = 1 - randint(2); /* 50% chance of breaking door */ | ^ moria4.c:1131:16: warning: passing arguments to 'move_char' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1131 | move_char(dir, FALSE); | ^ moria4.c:1133:16: warning: passing arguments to 'lite_spot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1133 | lite_spot(y, x); | ^ moria4.c:1135:24: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1135 | else if (randint(150) > py.stats.use_stat[A_DEX]) | ^ moria4.c:1137:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1137 | msg_print("You are off-balance."); | ^ moria4.c:1138:37: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1138 | py.flags.paralysis = 1 + randint(2); | ^ moria4.c:1141:12: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1141 | msg_print("The door holds firm."); | ^ moria4.c:1145:19: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1145 | if (randint(10) == 1) | ^ moria4.c:1147:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1147 | msg_print("You have destroyed the chest."); | ^ moria4.c:1148:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1148 | msg_print("and its contents!"); | ^ moria4.c:1152:55: warning: passing arguments to 'randint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1152 | else if ((CH_LOCKED & t_ptr->flags) && (randint(10) == 1)) | ^ moria4.c:1154:14: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1154 | msg_print("The lock breaks open!"); | ^ moria4.c:1158:18: warning: passing arguments to 'count_msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1158 | count_msg_print("The chest holds firm."); | ^ moria4.c:1163:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1163 | msg_print("You bash it, but nothing interesting happens."); | ^ moria4.c:1168:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1168 | msg_print("You bash at empty space."); | ^ moria4.c:1171:15: warning: passing arguments to 'msg_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1171 | msg_print("You bash it, but nothing interesting happens."); | ^ 164 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c monsters.c cc -DPREFIX=\"/usr/local\" -O2 -pipe -c treasure.c cc -DPREFIX=\"/usr/local\" -O2 -pipe -c variable.c cc -DPREFIX=\"/usr/local\" -O2 -pipe -c rnd.c rnd.c:76:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | void set_rnd_seed (seedval) | ^ 1 warning generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c recall.c In file included from recall.c:16: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from recall.c:16: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ recall.c:133:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 133 | int bool_roff_recall(mon_num) | ^ In file included from recall.c:16: ./externs.h:1107:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1107 | int bool_roff_recall(); | ^ recall.c:232:7: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 232 | roff(temp); | ^ recall.c:239:11: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 239 | roff(temp); | ^ recall.c:240:11: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 240 | roff(" been killed by this creature, and "); | ^ recall.c:242:6: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 242 | roff("it is not ever known to have been defeated."); | ^ recall.c:248:8: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 248 | roff(temp); | ^ recall.c:255:11: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 255 | roff(temp); | ^ recall.c:256:11: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 256 | roff(" been killed by contributors to your monster memory."); | ^ recall.c:259:9: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 259 | roff("No known battles to the death are recalled."); | ^ recall.c:264:11: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 264 | roff(" It lives in the town"); | ^ recall.c:275:11: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 275 | roff(temp); | ^ recall.c:283:6: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 283 | roff(", and"); | ^ recall.c:286:8: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 286 | roff(" It"); | ^ recall.c:289:11: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 289 | roff(" moves"); | ^ recall.c:293:8: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 293 | roff(desc_howmuch[(int)((rcmove & CM_RANDOM_MOVE) >> 3)]); | ^ recall.c:294:8: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 294 | roff(" erratically"); | ^ recall.c:297:6: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 297 | roff(" at normal speed"); | ^ recall.c:301:10: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 301 | roff(", and"); | ^ recall.c:305:7: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 305 | roff(" very"); | ^ recall.c:307:7: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 307 | roff(" incredibly"); | ^ recall.c:308:12: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 308 | roff(" slowly"); | ^ recall.c:313:7: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 313 | roff(" very"); | ^ recall.c:315:7: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 315 | roff(" unbelievably"); | ^ recall.c:316:12: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 316 | roff(" quickly"); | ^ recall.c:323:6: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 323 | roff(", but"); | ^ recall.c:326:8: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 326 | roff(" It"); | ^ recall.c:329:11: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 329 | roff(" does not deign to chase intruders"); | ^ recall.c:334:7: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 334 | roff (", but"); | ^ recall.c:337:9: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 337 | roff (" It"); | ^ recall.c:340:12: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 340 | roff (" always moves and attacks by using magic"); | ^ recall.c:343:9: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 343 | roff("."); | ^ recall.c:348:11: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 348 | roff(" A kill of this"); | ^ recall.c:350:6: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 350 | roff(" natural"); | ^ recall.c:352:6: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 352 | roff(" evil"); | ^ recall.c:354:6: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 354 | roff(" undead"); | ^ recall.c:366:11: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 366 | roff(temp); | ^ recall.c:381:11: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 381 | roff(temp); | ^ recall.c:415:7: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 415 | roff(" It can breathe "); | ^ recall.c:417:7: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 417 | roff(" It is resistant to "); | ^ recall.c:425:10: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 425 | roff(", "); | ^ recall.c:427:10: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 427 | roff(" and "); | ^ recall.c:428:8: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 428 | roff(desc_breath[i]); | ^ recall.c:450:7: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 450 | roff(", and is also"); | ^ recall.c:452:7: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 452 | roff(" It is"); | ^ recall.c:453:12: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 453 | roff(" magical, casting spells which "); | ^ recall.c:461:10: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 461 | roff(", "); | ^ recall.c:463:10: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 463 | roff(" or "); | ^ recall.c:464:8: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 464 | roff(desc_spell[i]); | ^ recall.c:477:8: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 477 | roff(temp); | ^ recall.c:479:11: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 479 | roff("."); | ^ recall.c:485:11: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 485 | roff(temp); | ^ recall.c:489:11: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 489 | roff(temp); | ^ recall.c:515:12: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 515 | roff(" It can "); | ^ recall.c:523:10: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 523 | roff(", "); | ^ recall.c:525:10: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 525 | roff(" and "); | ^ recall.c:526:8: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 526 | roff(desc_move[i]); | ^ recall.c:530:9: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 530 | roff("."); | ^ recall.c:541:12: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 541 | roff(" It is susceptible to "); | ^ recall.c:545:10: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 545 | roff(", "); | ^ recall.c:547:10: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 547 | roff(" and "); | ^ recall.c:548:8: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 548 | roff(desc_weakness[i]); | ^ recall.c:552:9: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 552 | roff("."); | ^ recall.c:554:9: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 554 | roff(" It is warm blooded"); | ^ recall.c:558:6: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 558 | roff(", and"); | ^ recall.c:560:6: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 560 | roff(" It"); | ^ recall.c:561:11: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 561 | roff(" cannot be charmed or slept"); | ^ recall.c:564:9: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 564 | roff("."); | ^ recall.c:569:11: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 569 | roff(" It "); | ^ recall.c:571:6: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 571 | roff("prefers to ignore"); | ^ recall.c:573:6: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 573 | roff("pays very little attention to"); | ^ recall.c:575:6: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 575 | roff("pays little attention to"); | ^ recall.c:577:6: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 577 | roff("tends to overlook"); | ^ recall.c:579:6: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 579 | roff("takes quite a while to see"); | ^ recall.c:581:6: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 581 | roff("takes a while to see"); | ^ recall.c:583:6: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 583 | roff("is fairly observant of"); | ^ recall.c:585:6: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 585 | roff("is observant of"); | ^ recall.c:587:6: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 587 | roff("is very observant of"); | ^ recall.c:589:6: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 589 | roff("is vigilant for"); | ^ recall.c:591:6: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 591 | roff("is ever vigilant for"); | ^ recall.c:594:11: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 594 | roff(temp); | ^ recall.c:604:11: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 604 | roff(" It may"); | ^ recall.c:617:10: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 617 | roff(" sometimes"); | ^ recall.c:619:10: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 619 | roff(" often"); | ^ recall.c:627:7: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 627 | roff (" often"); | ^ recall.c:628:11: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 628 | roff(" carry"); | ^ recall.c:650:6: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 650 | roff(" one or two"); | ^ recall.c:654:8: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 654 | roff(temp); | ^ recall.c:662:8: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 662 | roff(p); | ^ recall.c:669:12: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 669 | roff(" or treasure"); | ^ recall.c:671:7: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 671 | roff("s"); | ^ recall.c:673:8: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 673 | roff("."); | ^ recall.c:676:6: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 676 | roff(" treasures."); | ^ recall.c:678:6: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 678 | roff(" treasure."); | ^ recall.c:706:6: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 706 | roff(" It can "); | ^ recall.c:708:6: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 708 | roff(", and "); | ^ recall.c:710:6: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 710 | roff(", "); | ^ recall.c:714:11: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 714 | roff(desc_amethod[att_how]); | ^ recall.c:717:8: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 717 | roff(" to "); | ^ recall.c:720:8: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 720 | roff(desc_atype[att_type]); | ^ recall.c:726:11: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 726 | roff(" by"); | ^ recall.c:728:11: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 728 | roff(" with damage"); | ^ recall.c:730:9: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 730 | roff(temp); | ^ recall.c:736:9: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 736 | roff("."); | ^ recall.c:738:9: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 738 | roff(" It has no physical attacks."); | ^ recall.c:740:9: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 740 | roff(" Nothing is known about its attack."); | ^ recall.c:747:9: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 747 | roff(" Killing one of these wins the game!"); | ^ recall.c:748:7: warning: passing arguments to 'roff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 748 | roff("\n"); | ^ recall.c:749:6: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 749 | prt("--pause--", roffpline, 0); | ^ recall.c:152:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 152 | int roff_recall(mon_num) | ^ In file included from recall.c:16: ./externs.h:1108:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1108 | int roff_recall(); | ^ recall.c:771:7: warning: passing arguments to 'prt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 771 | prt(roffbuf, roffpline, 0); | ^ recall.c:756:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 756 | static void roff(p) | ^ recall.c:21:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 21 | static void roff(); | ^ 116 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c unix.c In file included from unix.c:73: ./externs.h:1258:5: warning: a function 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] 1258 | int check_input(); | ^ ./config.h:19:5: note: conflicting prototype is here 19 | int check_input(int); | ^ In file included from unix.c:73: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ ./config.h:20:6: note: conflicting prototype is here 20 | void user_name(char *); | ^ unix.c:121:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 121 | int check_input(microsec) | ^ In file included from unix.c:73: ./externs.h:1258:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1258 | int check_input(); | ^ unix.c:276:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 276 | void user_name(buf) | ^ In file included from unix.c:73: ./externs.h:1262:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1262 | void user_name(); | ^ unix.c:298:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 298 | int tilde(file, exp) | ^ In file included from unix.c:73: ./externs.h:1263:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1263 | int tilde(); | ^ unix.c:340:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 340 | FILE *tfopen(file, mode) | ^ unix.c:355:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 355 | int topen(file, flags, mode) | ^ In file included from unix.c:73: ./externs.h:1269:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1269 | int topen(); | ^ 11 warnings generated. cc -DPREFIX=\"/usr/local\" -O2 -pipe -c player.c cc -DPREFIX=\"/usr/local\" -O2 -pipe -c tables.c cc -o moria -DPREFIX=\"/usr/local\" -O2 -pipe main.o misc1.o misc2.o misc3.o misc4.o store1.o files.o io.o create.o desc.o generate.o sets.o dungeon.o creature.o death.o eat.o help.o magic.o potions.o prayer.o save.o staffs.o wands.o scrolls.o spells.o wizard.o store2.o signals.o moria1.o moria2.o moria3.o moria4.o monsters.o treasure.o variable.o rnd.o recall.o unix.o player.o tables.o -lcurses -ltermcap ld: warning: main.c(main.o:(main)): warning: strcpy() is almost always misused, please use strlcpy() ld: warning: main.c(main.o:(main)): warning: sprintf() is often misused, please use snprintf() ld: warning: unix.c(unix.o:(tilde)): warning: strcat() is almost always misused, please use strlcat() >>> Running package in games/moria at 1764960112.77 ===> games/moria ===> Faking installation for moria-5.5.2p5 /exopi-obj/pobj/moria-5.5.2/bin/install -c -s -m 755 -g games -m 2711 /exopi-obj/pobj/moria-5.5.2/build-amd64/moria /exopi-obj/pobj/moria-5.5.2/fake-amd64/usr/local/bin /exopi-obj/pobj/moria-5.5.2/bin/install -d -m 755 -m 711 /exopi-obj/pobj/moria-5.5.2/fake-amd64/usr/local/share/moria cd /exopi-obj/pobj/moria-5.5.2/build-amd64/files; /exopi-obj/pobj/moria-5.5.2/bin/install -c -m 644 hours news origcmds.hlp owizcmds.hlp roglcmds.hlp rwizcmds.hlp version.hlp welcome.hlp /exopi-obj/pobj/moria-5.5.2/fake-amd64/usr/local/share/moria /exopi-obj/pobj/moria-5.5.2/bin/install -c -m 644 /dev/null /exopi-obj/pobj/moria-5.5.2/fake-amd64/usr/local/share/moria/scores ===> Building package for moria-5.5.2p5 Create /exopi-cvs/ports/packages/amd64/all/moria-5.5.2p5.tgz Creating package moria-5.5.2p5 reading plist| checking dependencies| checksumming| checksumming| | 0% checksumming|** | 4% checksumming|**** | 7% checksumming|******* | 11% checksumming|********* | 14% checksumming|*********** | 18% checksumming|************* | 21% checksumming|*************** | 25% checksumming|***************** | 29% checksumming|******************** | 32% checksumming|********************** | 36% checksumming|************************ | 39% checksumming|************************** | 43% checksumming|**************************** | 46% checksumming|******************************* | 50% checksumming|********************************* | 54% checksumming|*********************************** | 57% checksumming|************************************* | 61% checksumming|*************************************** | 64% checksumming|***************************************** | 68% checksumming|******************************************** | 71% checksumming|********************************************** | 75% checksumming|************************************************ | 79% checksumming|************************************************** | 82% checksumming|**************************************************** | 86% checksumming|****************************************************** | 89% checksumming|********************************************************* | 93% checksumming|*********************************************************** | 96% checksumming|*************************************************************|100% archiving| archiving| | 0% archiving|*************************************************************** | 98% archiving|*************************************************************** | 99% archiving|****************************************************************| 99% archiving|****************************************************************|100% Link to /exopi-cvs/ports/packages/amd64/ftp/moria-5.5.2p5.tgz >>> Running clean in games/moria at 1764960115.82 ===> games/moria ===> Cleaning for moria-5.5.2p5 >>> Ended at 1764960116.27 max_stuck=0.00/build=18.77/package=3.16/clean=0.49