Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- swim@lappy:~/Desktop/GAMES/Frogcomposband/frogcomposband-7.1.salmiak$ make
- make[1]: Entering directory '/home/swim/Desktop/GAMES/Frogcomposband/frogcomposband-7.1.salmiak'
- Entering directory src
- make[2]: Entering directory '/home/swim/Desktop/GAMES/Frogcomposband/frogcomposband-7.1.salmiak/src'
- make[3]: Entering directory '/home/swim/Desktop/GAMES/Frogcomposband/frogcomposband-7.1.salmiak/src'
- make[3]: Leaving directory '/home/swim/Desktop/GAMES/Frogcomposband/frogcomposband-7.1.salmiak/src'
- make[3]: Entering directory '/home/swim/Desktop/GAMES/Frogcomposband/frogcomposband-7.1.salmiak/src'
- Generating dependencies...
- make[4]: Entering directory '/home/swim/Desktop/GAMES/Frogcomposband/frogcomposband-7.1.salmiak/src'
- make[4]: Leaving directory '/home/swim/Desktop/GAMES/Frogcomposband/frogcomposband-7.1.salmiak/src'
- Successfully generated dependencies.
- make[3]: Leaving directory '/home/swim/Desktop/GAMES/Frogcomposband/frogcomposband-7.1.salmiak/src'
- make[3]: Entering directory '/home/swim/Desktop/GAMES/Frogcomposband/frogcomposband-7.1.salmiak/src'
- Compiling alky.c...
- alky.c: In function ‘_use_infusion’:
- alky.c:401:45: warning: ‘%s’ directive writing up to 254 bytes into a region of size 244 [-Wformat-overflow=]
- 401 | sprintf(prompt, "Really use %s? <color:y>[y/n]</color>", o_name);
- | ^~ ~~~~~~
- alky.c:401:17: note: ‘sprintf’ output between 36 and 290 bytes into a destination of size 255
- 401 | sprintf(prompt, "Really use %s? <color:y>[y/n]</color>", o_name);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- alky.c:405:61: warning: ‘%s’ directive writing up to 254 bytes into a region of size 236 [-Wformat-overflow=]
- 405 | sprintf(prompt, "Really, REALLY use %s? <color:y>[y/n]</color>", o_name);
- | ^~ ~~~~~~
- alky.c:405:25: note: ‘sprintf’ output between 44 and 298 bytes into a destination of size 255
- 405 | sprintf(prompt, "Really, REALLY use %s? <color:y>[y/n]</color>", o_name);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- alky.c: In function ‘create_infusion’:
- alky.c:499:49: warning: ‘%s’ directive writing up to 254 bytes into a region of size 240 [-Wformat-overflow=]
- 499 | sprintf(prompt, "Really replace %s? <color:y>[y/n]</color>", o_name);
- | ^~ ~~~~~~
- alky.c:499:17: note: ‘sprintf’ output between 40 and 294 bytes into a destination of size 255
- 499 | sprintf(prompt, "Really replace %s? <color:y>[y/n]</color>", o_name);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- alky.c: In function ‘alchemist_break_down_aux’:
- alky.c:770:52: warning: ‘%s’ directive writing up to 254 bytes into a region of size 237 [-Wformat-overflow=]
- 770 | sprintf(prompt, "Really break down %s? %s chemicals will be lost due to lack of room. <color:y>[y/n]</color>", o_name, _CHEM[tier] == _MAX_CHEM ? "All" : "Some of the");
- | ^~ ~~~~~~
- alky.c:770:17: note: ‘sprintf’ output 91 or more bytes (assuming 345) into a destination of size 255
- 770 | sprintf(prompt, "Really break down %s? %s chemicals will be lost due to lack of room. <color:y>[y/n]</color>", o_name, _CHEM[tier] == _MAX_CHEM ? "All" : "Some of the");
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Successfully compiled alky.c
- Compiling archer.c...
- Successfully compiled archer.c
- Compiling arky.c...
- Successfully compiled arky.c
- Compiling artifact.c...
- artifact.c: In function ‘reforge_artifact’:
- artifact.c:3538:17: warning: format not a string literal and no format arguments [-Wformat-security]
- 3538 | sprintf(buf, oldname + strpos(" '", oldname));
- | ^~~~~~~
- artifact.c:3542:30: warning: format not a string literal and no format arguments [-Wformat-security]
- 3542 | sprintf(buf, minibuf);
- | ^~~~~~~
- artifact.c: In function ‘double_check_immunity’:
- artifact.c:694:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 694 | if (!have_flag(o_ptr->flags, OF_SPEED))
- | ^
- artifact.c:701:13: note: here
- 701 | case 3: case 4: case 5: case 6:
- | ^~~~
- artifact.c:707:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 707 | if (!have_flag(o_ptr->flags, OF_BLOWS))
- | ^
- artifact.c:714:13: note: here
- 714 | case 9: case 10:
- | ^~~~
- artifact.c:732:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 732 | if (!have_flag(o_ptr->flags, OF_SPEED))
- | ^
- artifact.c:739:13: note: here
- 739 | case 3: case 4: case 5: case 6:
- | ^~~~
- artifact.c:770:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 770 | if (!have_flag(o_ptr->flags, OF_SPEED))
- | ^
- artifact.c:776:13: note: here
- 776 | case 2:
- | ^~~~
- artifact.c: In function ‘random_slay_aux’:
- artifact.c:1422:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 1422 | if (one_in_(5)) /* low level slay evil is rare ... */
- | ^
- artifact.c:1427:9: note: here
- 1427 | case 6:
- | ^~~~
- artifact.c: In function ‘random_slay’:
- artifact.c:1603:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 1603 | if (!one_in_(6))
- | ^
- artifact.c:1608:13: note: here
- 1608 | case 2:
- | ^~~~
- artifact.c: In function ‘create_artifact’:
- artifact.c:2688:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 2688 | else if (one_in_(5))
- | ^
- artifact.c:2693:13: note: here
- 2693 | case 5:
- | ^~~~
- artifact.c:2770:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 2770 | else if (one_in_(5))
- | ^
- artifact.c:2775:13: note: here
- 2775 | case 5: case 6:
- | ^~~~
- artifact.c:2852:23: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 2852 | || one_in_(3) )
- artifact.c:2857:17: note: here
- 2857 | case 5: case 6: case 7:
- | ^~~~
- Successfully compiled artifact.c
- Compiling autopick.c...
- autopick.c: In function ‘get_string_for_search’:
- autopick.c:4081:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 4081 | pos = i;
- | ~~~~^~~
- autopick.c:4086:9: note: here
- 4086 | case 0x7F:
- | ^~~~
- autopick.c: In function ‘autopick_entry_from_object’:
- autopick.c:848:31: warning: ‘$’ directive writing 1 byte into a region of size between 0 and 254 [-Wformat-overflow=]
- 848 | sprintf(name_str, "^%s$", o_name);
- | ^
- autopick.c:848:9: note: ‘sprintf’ output between 3 and 257 bytes into a destination of size 255
- 848 | sprintf(name_str, "^%s$", o_name);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- autopick.c: In function ‘describe_autopick’:
- autopick.c:3026:16: warning: ‘sprintf’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
- 3026 | "%d", entry->dice);
- | ^
- autopick.c:3025:9: note: ‘sprintf’ output between 2 and 4 bytes into a destination of size 3
- 3025 | sprintf(more_than_desc_str + sizeof(more_than_desc_str) - 3,
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 3026 | "%d", entry->dice);
- | ~~~~~~~~~~~~~~~~~~
- autopick.c:3037:17: warning: ‘sprintf’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
- 3037 | "%d)", entry->bonus);
- | ^
- autopick.c:3036:9: note: ‘sprintf’ output between 3 and 5 bytes into a destination of size 4
- 3036 | sprintf(more_bonus_desc_str + sizeof(more_bonus_desc_str) - 4,
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 3037 | "%d)", entry->bonus);
- | ~~~~~~~~~~~~~~~~~~~~
- Successfully compiled autopick.c
- Compiling virtue.c...
- Successfully compiled virtue.c
- Compiling bard.c...
- Successfully compiled bard.c
- Compiling beastmaster.c...
- Successfully compiled beastmaster.c
- Compiling beorning.c...
- Successfully compiled beorning.c
- Compiling berserker.c...
- Successfully compiled berserker.c
- Compiling birth.c...
- Successfully compiled birth.c
- Compiling bldg.c...
- bldg.c: In function ‘_enchant_menu_fn’:
- bldg.c:3260:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 3260 | if (ptr->cost > p_ptr->au)
- | ^
- bldg.c:3265:5: note: here
- 3265 | default:
- | ^~~~~~~
- bldg.c: In function ‘show_building’:
- bldg.c:131:31: warning: ‘%35s’ directive writing 35 bytes into a region of size between 33 and 76 [-Wformat-overflow=]
- 131 | sprintf(tmp_str, "%s (%s) %35s", bldg->owner_name, bldg->owner_race, bldg->name);
- | ^~~~
- bldg.c:131:5: note: ‘sprintf’ output between 40 and 83 bytes into a destination of size 80
- 131 | sprintf(tmp_str, "%s (%s) %35s", bldg->owner_name, bldg->owner_race, bldg->name);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Successfully compiled bldg.c
- Compiling blood_knight.c...
- Successfully compiled blood_knight.c
- Compiling blood_mage.c...
- Successfully compiled blood_mage.c
- Compiling bluemage.c...
- Successfully compiled bluemage.c
- Compiling cavalry.c...
- Successfully compiled cavalry.c
- Compiling cave.c...
- cave.c: In function ‘hit_mon_trap’:
- cave.c:4880:24: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 4880 | if (!quests_get_current() && !p_ptr->inside_arena && dungeon_type && (dun_level < d_info[dungeon_type].maxdepth))
- | ^
- cave.c:4896:17: note: here
- 4896 | case 6: case 7: case 8: case 9: /* Arrow Trap */
- | ^~~~
- cave.c: In function ‘display_shortened_item_name’:
- cave.c:1870:29: warning: ‘%s’ directive writing up to 254 bytes into a region of size between 247 and 251 [-Wformat-overflow=]
- 1870 | sprintf(buf, "%dd%d %s", o_ptr->dd, o_ptr->ds, tmp);
- | ^~ ~~~
- cave.c:1870:9: note: ‘sprintf’ output between 5 and 263 bytes into a destination of size 255
- 1870 | sprintf(buf, "%dd%d %s", o_ptr->dd, o_ptr->ds, tmp);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- cave.c:1876:33: warning: ‘%s’ directive writing up to 254 bytes into a region of size between 245 and 249 [-Wformat-overflow=]
- 1876 | sprintf(buf, "x%d.%2.2d %s", o_ptr->mult / 100, o_ptr->mult % 100, tmp);
- | ^~ ~~~
- cave.c:1876:9: note: ‘sprintf’ output between 7 and 265 bytes into a destination of size 255
- 1876 | sprintf(buf, "x%d.%2.2d %s", o_ptr->mult / 100, o_ptr->mult % 100, tmp);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Successfully compiled cave.c
- Compiling chaoswar.c...
- Successfully compiled chaoswar.c
- Compiling classes.c...
- classes.c: In function ‘get_class_idx’:
- classes.c:41:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 41 | if (p_ptr->current_r_idx)
- | ^
- classes.c:47:9: note: here
- 47 | default:
- | ^~~~~~~
- Successfully compiled classes.c
- Compiling cmd1.c...
- cmd1.c: In function ‘py_attack_aux’:
- cmd1.c:2086:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
- 2086 | if ((personality_is_(PERS_SNEAKY)) && (MON_CSLEEP(m_ptr)) && (m_ptr->ml))
- | ^~
- cmd1.c:2089:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
- 2089 | switch (p_ptr->pclass)
- | ^~~~~~
- cmd1.c:2103:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 2103 | if (!p_ptr->sneak_attack)
- | ^
- cmd1.c:2106:5: note: here
- 2106 | case CLASS_ROGUE:
- | ^~~~
- cmd1.c: In function ‘py_attack’:
- cmd1.c:4111:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 4111 | if (p_ptr->weapon_ct == 0) /* Kenshirou Possessor can retaliate with innate attacks! */
- | ^
- cmd1.c:4113:9: note: here
- 4113 | case WEAPONMASTER_PROXIMITY_ALERT:
- | ^~~~
- Successfully compiled cmd1.c
- Compiling cmd2.c...
- Successfully compiled cmd2.c
- Compiling cmd3.c...
- Successfully compiled cmd3.c
- Compiling cmd4.c...
- Successfully compiled cmd4.c
- Compiling cmd5.c...
- cmd5.c: In function ‘wild_magic’:
- cmd5.c:636:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 636 | wall_breaker();
- | ^~~~~~~~~~~~~~
- cmd5.c:637:5: note: here
- 637 | case 18:
- | ^~~~
- Successfully compiled cmd5.c
- Compiling cmd6.c...
- Successfully compiled cmd6.c
- Compiling combat.c...
- Successfully compiled combat.c
- Compiling corny.c...
- corny.c: In function ‘_policy_blurb’:
- corny.c:1209:25: warning: format not a string literal and no format arguments [-Wformat-security]
- 1209 | sprintf(tmp_val, format("(Claimable: %d) ", _allowable()));
- | ^~~~~~~
- Successfully compiled corny.c
- Compiling demigod.c...
- Successfully compiled demigod.c
- Compiling devicemaster.c...
- Successfully compiled devicemaster.c
- Compiling devices.c...
- devices.c: In function ‘effect_parse’:
- devices.c:2441:27: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 2441 | case 4: effect->extra = atoi(tokens[3]);
- | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
- devices.c:2442:5: note: here
- 2442 | case 3: effect->cost = atoi(tokens[2]);
- | ^~~~
- devices.c:2442:26: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 2442 | case 3: effect->cost = atoi(tokens[2]);
- | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
- devices.c:2443:5: note: here
- 2443 | case 2: effect->power = atoi(tokens[1]);
- | ^~~~
- devices.c:2444:32: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 2444 | effect->difficulty = effect->power;
- | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- devices.c:2445:5: note: here
- 2445 | case 1:
- | ^~~~
- Successfully compiled devices.c
- Compiling disciple.c...
- Successfully compiled disciple.c
- Compiling do-spell.c...
- do-spell.c: In function ‘wild_magic’:
- do-spell.c:536:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 536 | wall_breaker();
- | ^~~~~~~~~~~~~~
- do-spell.c:537:5: note: here
- 537 | case 18:
- | ^~~~
- Successfully compiled do-spell.c
- Compiling doppelganger.c...
- Successfully compiled doppelganger.c
- Compiling duelist.c...
- Successfully compiled duelist.c
- Compiling dungeon.c...
- Successfully compiled dungeon.c
- Compiling ego.c...
- ego.c: In function ‘_create_ring_aux’:
- ego.c:964:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 964 | if (!have_flag(o_ptr->flags, OF_FREE_ACT))
- | ^
- ego.c:969:13: note: here
- 969 | case 3:
- | ^~~~
- ego.c:970:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 970 | if (!have_flag(o_ptr->flags, OF_SEE_INVIS))
- | ^
- ego.c:975:13: note: here
- 975 | case 4:
- | ^~~~
- ego.c:976:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 976 | if (one_in_(2))
- | ^
- ego.c:983:13: note: here
- 983 | case 5:
- | ^~~~
- ego.c:984:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 984 | if (one_in_(2))
- | ^
- ego.c:993:13: note: here
- 993 | default:
- | ^~~~~~~
- ego.c: In function ‘_create_amulet_aux’:
- ego.c:1170:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 1170 | else if (one_in_(3))
- | ^
- ego.c:1175:13: note: here
- 1175 | case 6:
- | ^~~~
- ego.c:1238:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 1238 | if (abs(power) >= 2 && one_in_(2) && level >= 30)
- | ^
- ego.c:1244:13: note: here
- 1244 | default:
- | ^~~~~~~
- ego.c:1278:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 1278 | if (abs(power) >= 2 && one_in_(2) && level >= 50)
- | ^
- ego.c:1283:13: note: here
- 1283 | case 6:
- | ^~~~
- ego.c:1284:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 1284 | if (abs(power) >= 2 && one_in_(2) && level >= 50)
- | ^
- ego.c:1290:13: note: here
- 1290 | default:
- | ^~~~~~~
- ego.c:1524:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 1524 | else if (one_in_(3))
- | ^
- ego.c:1534:13: note: here
- 1534 | default:
- | ^~~~~~~
- Successfully compiled ego.c
- Compiling effects.c...
- effects.c: In function ‘do_poly_self’:
- effects.c:6249:34: warning: ‘%s’ directive writing up to 79 bytes into a region of size 10 [-Wformat-overflow=]
- 6249 | sprintf(tmp_msg,"%s",effect_msg);
- | ^~ ~~~~~~~~~~
- effects.c:6249:17: note: ‘sprintf’ output between 1 and 80 bytes into a destination of size 10
- 6249 | sprintf(tmp_msg,"%s",effect_msg);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Successfully compiled effects.c
- Compiling equip.c...
- Successfully compiled equip.c
- Compiling fear.c...
- Successfully compiled fear.c
- Compiling files.c...
- files.c: In function ‘process_pref_file_expr’:
- files.c:946:21: warning: format not a string literal and no format arguments [-Wformat-security]
- 946 | sprintf(tmp, v);
- | ^~~~~~~
- files.c: In function ‘file_character’:
- files.c:1820:55: warning: ‘%s’ directive writing up to 1023 bytes into a region of size 138 [-Wformat-overflow=]
- 1820 | (void)sprintf(out_val, "Replace existing file %s? ", buf);
- | ^~ ~~~
- files.c:1820:15: note: ‘sprintf’ output between 25 and 1048 bytes into a destination of size 160
- 1820 | (void)sprintf(out_val, "Replace existing file %s? ", buf);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- files.c: In function ‘show_file’:
- files.c:2139:38: warning: ‘%s’ directive writing up to 1023 bytes into a region of size 117 [-Wformat-overflow=]
- 2139 | sprintf(caption, "Help file '%s'", name);
- | ^~
- files.c:2139:9: note: ‘sprintf’ output between 13 and 1036 bytes into a destination of size 128
- 2139 | sprintf(caption, "Help file '%s'", name);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- files.c:2153:38: warning: ‘%s’ directive writing up to 1023 bytes into a region of size 117 [-Wformat-overflow=]
- 2153 | sprintf(caption, "Info file '%s'", name);
- | ^~
- files.c:2153:9: note: ‘sprintf’ output between 13 and 1036 bytes into a destination of size 128
- 2153 | sprintf(caption, "Info file '%s'", name);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- files.c:2174:38: warning: ‘%s’ directive writing up to 1023 bytes into a region of size 117 [-Wformat-overflow=]
- 2174 | sprintf(caption, "Info file '%s'", name);
- | ^~
- files.c:2174:9: note: ‘sprintf’ output between 13 and 1036 bytes into a destination of size 128
- 2174 | sprintf(caption, "Info file '%s'", name);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- files.c:2565:32: warning: ‘%s’ directive writing up to 127 bytes into a region of size between 49 and 80 [-Wformat-overflow=]
- 2565 | sprintf(xtmp, "%s: %s", player_name, what ? what : caption);
- | ^~
- files.c:2565:13: note: ‘sprintf’ output between 3 and 161 bytes into a destination of size 82
- 2565 | sprintf(xtmp, "%s: %s", player_name, what ? what : caption);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Successfully compiled files.c
- Compiling flavor.c...
- flavor.c: In function ‘object_desc’:
- flavor.c:1933:30: warning: ‘sprintf’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
- 1933 | sprintf(tmp, "x%d", power / 100);
- | ^
- flavor.c:1933:13: note: ‘sprintf’ output between 3 and 11 bytes into a destination of size 10
- 1933 | sprintf(tmp, "x%d", power / 100);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- flavor.c:1931:30: warning: ‘.’ directive writing 1 byte into a region of size between 0 and 8 [-Wformat-overflow=]
- 1931 | sprintf(tmp, "x%d.%2.2d", power / 100, power % 100);
- | ^
- flavor.c:1931:26: note: directive argument in the range [-99, 99]
- 1931 | sprintf(tmp, "x%d.%2.2d", power / 100, power % 100);
- | ^~~~~~~~~~~
- flavor.c:1931:13: note: ‘sprintf’ output between 6 and 15 bytes into a destination of size 10
- 1931 | sprintf(tmp, "x%d.%2.2d", power / 100, power % 100);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Successfully compiled flavor.c
- Compiling floors.c...
- floors.c: In function ‘init_saved_floors’:
- floors.c:45:36: warning: ‘.F’ directive writing 2 bytes into a region of size between 1 and 1024 [-Wformat-overflow=]
- 45 | sprintf(floor_savefile, "%s.F%02d", savefile, i);
- | ^~
- floors.c:45:33: note: directive argument in the range [0, 19]
- 45 | sprintf(floor_savefile, "%s.F%02d", savefile, i);
- | ^~~~~~~~~~
- floors.c:45:9: note: ‘sprintf’ output between 5 and 1028 bytes into a destination of size 1024
- 45 | sprintf(floor_savefile, "%s.F%02d", savefile, i);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- floors.c: In function ‘clear_saved_floor_files’:
- floors.c:136:36: warning: ‘.F’ directive writing 2 bytes into a region of size between 1 and 1024 [-Wformat-overflow=]
- 136 | sprintf(floor_savefile, "%s.F%02d", savefile, i);
- | ^~
- floors.c:136:33: note: directive argument in the range [0, 19]
- 136 | sprintf(floor_savefile, "%s.F%02d", savefile, i);
- | ^~~~~~~~~~
- floors.c:136:9: note: ‘sprintf’ output between 5 and 1028 bytes into a destination of size 1024
- 136 | sprintf(floor_savefile, "%s.F%02d", savefile, i);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- floors.c: In function ‘kill_saved_floor’:
- floors.c:202:36: warning: ‘.F’ directive writing 2 bytes into a region of size between 1 and 1024 [-Wformat-overflow=]
- 202 | sprintf(floor_savefile, "%s.F%02d", savefile, (int)sf_ptr->savefile_id);
- | ^~
- floors.c:202:33: note: directive argument in the range [0, 255]
- 202 | sprintf(floor_savefile, "%s.F%02d", savefile, (int)sf_ptr->savefile_id);
- | ^~~~~~~~~~
- floors.c:202:9: note: ‘sprintf’ output between 5 and 1029 bytes into a destination of size 1024
- 202 | sprintf(floor_savefile, "%s.F%02d", savefile, (int)sf_ptr->savefile_id);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Successfully compiled floors.c
- Compiling force_trainer.c...
- Successfully compiled force_trainer.c
- Compiling generate.c...
- Successfully compiled generate.c
- Compiling gf.c...
- gf.c: In function ‘gf_affect_p’:
- gf.c:1306:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 1306 | if (p_ptr->prace != RACE_SNOTLING)
- | ^
- gf.c:1311:13: note: here
- 1311 | case 2:
- | ^~~~
- gf.c:1312:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 1312 | if (p_ptr->prace != RACE_YEEK)
- | ^
- gf.c:1317:13: note: here
- 1317 | case 3:
- | ^~~~
- gf.c: In function ‘gf_affect_m’:
- gf.c:4731:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 4731 | if (!count)
- | ^
- gf.c:4738:17: note: here
- 4738 | case 3: case 4: case 5: case 6: case 7: case 8:
- | ^~~~
- gf.c:4739:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 4739 | if (!count)
- | ^
- gf.c:4747:17: note: here
- 4747 | case 9: case 10: case 11:
- | ^~~~
- gf.c:4748:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 4748 | if (!count)
- | ^
- gf.c:4756:17: note: here
- 4756 | case 12: case 13: case 14: case 15: case 16:
- | ^~~~
- gf.c:4760:24: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 4760 | if (!one_in_(6)) break;
- | ^
- gf.c:4761:17: note: here
- 4761 | case 17: case 18: case 19:
- | ^~~~
- gf.c:4763:24: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 4763 | if (!one_in_(6)) break;
- | ^
- gf.c:4764:17: note: here
- 4764 | case 20: case 21:
- | ^~~~
- gf.c:4766:24: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 4766 | if (!one_in_(6)) break;
- | ^
- gf.c:4767:17: note: here
- 4767 | case 22: case 23: case 24: case 25: case 26:
- | ^~~~
- gf.c:4768:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 4768 | {
- | ^
- gf.c:4778:17: note: here
- 4778 | default:
- | ^~~~~~~
- Successfully compiled gf.c
- Compiling graymage.c...
- Successfully compiled graymage.c
- Compiling grid.c...
- Successfully compiled grid.c
- Compiling hex.c...
- Successfully compiled hex.c
- Compiling highmage.c...
- Successfully compiled highmage.c
- Compiling hissatsu.c...
- Successfully compiled hissatsu.c
- Compiling home.c...
- Successfully compiled home.c
- Compiling igor.c...
- Successfully compiled igor.c
- Compiling init1.c...
- init1.c: In function ‘process_dungeon_file_expr’:
- init1.c:5116:21: warning: format not a string literal and no format arguments [-Wformat-security]
- 5116 | sprintf(tmp, v);
- | ^~~~~~~
- init1.c: In function ‘_parse_room_grid_object’:
- init1.c:1594:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 1594 | {
- | ^
- init1.c:1665:5: note: here
- 1665 | case 1:
- | ^~~~
- init1.c: In function ‘_parse_room_grid_trap’:
- init1.c:1828:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 1828 | if (sscanf(args[1], "%d%%", &n) == 1)
- | ^
- init1.c:1831:5: note: here
- 1831 | case 1:
- | ^~~~
- init1.c: In function ‘parse_r_info’:
- init1.c:4201:49: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 4201 | case 4: r_ptr->body.blows_calc.mult = atoi(zz[3]);
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
- init1.c:4202:13: note: here
- 4202 | case 3: r_ptr->body.blows_calc.wgt = atoi(zz[2]);
- | ^~~~
- init1.c:4202:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 4202 | case 3: r_ptr->body.blows_calc.wgt = atoi(zz[2]);
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
- init1.c:4203:13: note: here
- 4203 | case 2: r_ptr->body.blows_calc.max = atoi(zz[1]);
- | ^~~~
- Successfully compiled init1.c
- Compiling init2.c...
- init2.c: In function ‘init_angband’:
- init2.c:1531:42: warning: ‘%s’ directive writing up to 1023 bytes into a region of size 1005 [-Wformat-overflow=]
- 1531 | sprintf(why, "Cannot access the '%s' file!", buf);
- | ^~ ~~~
- init2.c:1531:9: note: ‘sprintf’ output between 27 and 1050 bytes into a destination of size 1024
- 1531 | sprintf(why, "Cannot access the '%s' file!", buf);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Successfully compiled init2.c
- Compiling int-map.c...
- Successfully compiled int-map.c
- Compiling inv.c...
- Successfully compiled inv.c
- Compiling karrot.c...
- Successfully compiled karrot.c
- Compiling lawyer.c...
- Successfully compiled lawyer.c
- Compiling load.c...
- load.c: In function ‘load_floor’:
- load.c:1521:32: warning: ‘.F’ directive writing 2 bytes into a region of size between 1 and 1024 [-Wformat-overflow=]
- 1521 | sprintf(floor_savefile, "%s.F%02d", savefile, (int)sf_ptr->savefile_id);
- | ^~
- load.c:1521:29: note: directive argument in the range [0, 255]
- 1521 | sprintf(floor_savefile, "%s.F%02d", savefile, (int)sf_ptr->savefile_id);
- | ^~~~~~~~~~
- load.c:1521:5: note: ‘sprintf’ output between 5 and 1029 bytes into a destination of size 1024
- 1521 | sprintf(floor_savefile, "%s.F%02d", savefile, (int)sf_ptr->savefile_id);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Successfully compiled load.c
- Compiling mage.c...
- Successfully compiled mage.c
- Compiling magic_eater.c...
- magic_eater.c: In function ‘gain_magic’:
- magic_eater.c:495:41: warning: ‘%s’ directive writing up to 254 bytes into a region of size 240 [-Wformat-overflow=]
- 495 | sprintf(prompt, "Really replace %s? <color:y>[y/n]</color>", o_name);
- | ^~ ~~~~~~
- magic_eater.c:495:9: note: ‘sprintf’ output between 40 and 294 bytes into a destination of size 255
- 495 | sprintf(prompt, "Really replace %s? <color:y>[y/n]</color>", o_name);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- magic_eater.c:500:52: warning: ‘%s’ directive writing up to 254 bytes into a region of size 233 [-Wformat-overflow=]
- 500 | sprintf(prompt, "Copy inscription from %s? <color:y>[y/n]</color>", o_name);
- | ^~ ~~~~~~
- magic_eater.c:500:13: note: ‘sprintf’ output between 47 and 301 bytes into a destination of size 255
- 500 | sprintf(prompt, "Copy inscription from %s? <color:y>[y/n]</color>", o_name);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Successfully compiled magic_eater.c
- Compiling mauler.c...
- Successfully compiled mauler.c
- Compiling melee1.c...
- Successfully compiled melee1.c
- Compiling melee2.c...
- melee2.c: In function ‘mon_attack_mon’:
- melee2.c:1943:24: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 1943 | if ((p_ptr->riding != m_idx) && one_in_(2)) blinked = TRUE;
- | ^
- melee2.c:1944:17: note: here
- 1944 | case RBE_EAT_FOOD:
- | ^~~~
- Successfully compiled melee2.c
- Compiling menu.c...
- Successfully compiled menu.c
- Compiling message.c...
- Successfully compiled message.c
- Compiling mindcrafter.c...
- Successfully compiled mindcrafter.c
- Compiling mirror_master.c...
- mirror_master.c: In function ‘_banishing_mirror_spell’:
- mirror_master.c:80:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 80 | if (_on_mirror)
- | ^
- mirror_master.c:85:5: note: here
- 85 | default:
- | ^~~~~~~
- mirror_master.c: In function ‘_mirror_of_wandering_spell’:
- mirror_master.c:426:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 426 | if (_on_mirror)
- | ^
- mirror_master.c:431:5: note: here
- 431 | default:
- | ^~~~~~~
- mirror_master.c: In function ‘_mirror_tunnel_spell’:
- mirror_master.c:512:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 512 | if (_on_mirror)
- | ^
- mirror_master.c:517:5: note: here
- 517 | default:
- | ^~~~~~~
- mirror_master.c: In function ‘_warped_mirror_spell’:
- mirror_master.c:704:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 704 | if (_on_mirror)
- | ^
- mirror_master.c:709:5: note: here
- 709 | default:
- | ^~~~~~~
- Successfully compiled mirror_master.c
- Compiling mon.c...
- Successfully compiled mon.c
- Compiling mon_info.c...
- Successfully compiled mon_info.c
- Compiling monk.c...
- Successfully compiled monk.c
- Compiling monspell.c...
- Successfully compiled monspell.c
- Compiling monster.c...
- Successfully compiled monster.c
- Compiling monster1.c...
- Successfully compiled monster1.c
- Compiling monster2.c...
- Successfully compiled monster2.c
- Compiling mspells1.c...
- Successfully compiled mspells1.c
- Compiling mspells2.c...
- Successfully compiled mspells2.c
- Compiling mut.c...
- mut.c: In function ‘mut_gain_choice’:
- mut.c:609:41: warning: ‘%s’ directive writing up to 1023 bytes into a region of size 1010 [-Wformat-overflow=]
- 609 | sprintf(buf, "You will gain %s. Are you sure?", buf2);
- | ^~ ~~~~
- mut.c:609:13: note: ‘sprintf’ output between 30 and 1053 bytes into a destination of size 1024
- 609 | sprintf(buf, "You will gain %s. Are you sure?", buf2);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Successfully compiled mut.c
- Compiling mut_a.c...
- Successfully compiled mut_a.c
- Compiling mystic.c...
- Successfully compiled mystic.c
- Compiling necromancer.c...
- Successfully compiled necromancer.c
- Compiling ninja.c...
- Successfully compiled ninja.c
- Compiling ninjalaw.c...
- Successfully compiled ninjalaw.c
- Compiling obj.c...
- Successfully compiled obj.c
- Compiling obj_info.c...
- obj_info.c: In function ‘_display_slays’:
- obj_info.c:763:10: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
- 763 | else if (have_flag(flgs, OF_SLAY_EVIL))
- | ^~
- obj_info.c:766:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
- 766 | if (have_flag(flgs, OF_KILL_GOOD))
- | ^~
- obj_info.c: In function ‘_display_abilities’:
- obj_info.c:958:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
- 958 | if (have_flag(flgs, OF_ESP_NONLIVING))
- | ^~
- obj_info.c:960:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
- 960 | if (have_flag(flgs, OF_ESP_LIVING))
- | ^~
- Successfully compiled obj_info.c
- Compiling obj_prompt.c...
- Successfully compiled obj_prompt.c
- Compiling object1.c...
- Successfully compiled object1.c
- Compiling object2.c...
- Successfully compiled object2.c
- Compiling object3.c...
- Successfully compiled object3.c
- Compiling obj_kind.c...
- Successfully compiled obj_kind.c
- Compiling pack.c...
- Successfully compiled pack.c
- Compiling paladin.c...
- Successfully compiled paladin.c
- Compiling personality.c...
- Successfully compiled personality.c
- Compiling polly.c...
- Successfully compiled polly.c
- Compiling priest.c...
- Successfully compiled priest.c
- Compiling psion.c...
- Successfully compiled psion.c
- Compiling py_birth.c...
- Successfully compiled py_birth.c
- Compiling py_info.c...
- Successfully compiled py_info.c
- Compiling py_throw.c...
- Successfully compiled py_throw.c
- Compiling quest.c...
- Successfully compiled quest.c
- Compiling quiver.c...
- Successfully compiled quiver.c
- Compiling races.c...
- Successfully compiled races.c
- Compiling races_a.c...
- Successfully compiled races_a.c
- Compiling races_k.c...
- Successfully compiled races_k.c
- Compiling races_mf.c...
- Successfully compiled races_mf.c
- Compiling r_angel.c...
- Successfully compiled r_angel.c
- Compiling r_centip.c...
- Successfully compiled r_centip.c
- Compiling r_demon.c...
- Successfully compiled r_demon.c
- Compiling r_dragon.c...
- Successfully compiled r_dragon.c
- Compiling r_elem.c...
- Successfully compiled r_elem.c
- Compiling r_eye.c...
- Successfully compiled r_eye.c
- Compiling r_giant.c...
- Successfully compiled r_giant.c
- Compiling r_golem.c...
- Successfully compiled r_golem.c
- Compiling r_hound.c...
- Successfully compiled r_hound.c
- Compiling r_hydra.c...
- Successfully compiled r_hydra.c
- Compiling r_jelly.c...
- Successfully compiled r_jelly.c
- Compiling r_leprec.c...
- Successfully compiled r_leprec.c
- Compiling r_lich.c...
- Successfully compiled r_lich.c
- Compiling r_mimic.c...
- Successfully compiled r_mimic.c
- Compiling r_mummy.c...
- Successfully compiled r_mummy.c
- Compiling r_orc.c...
- Successfully compiled r_orc.c
- Compiling r_poss.c...
- r_poss.c: In function ‘possessor_attack’:
- r_poss.c:469:24: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 469 | if (dam > 23) delay_quake = TRUE;
- | ^
- r_poss.c:470:17: note: here
- 470 | case RBE_HURT:
- | ^~~~
- Successfully compiled r_poss.c
- Compiling r_pump.c...
- Successfully compiled r_pump.c
- Compiling r_quyl.c...
- Successfully compiled r_quyl.c
- Compiling r_rag.c...
- Successfully compiled r_rag.c
- Compiling r_spider.c...
- Successfully compiled r_spider.c
- Compiling r_ring.c...
- r_ring.c: In function ‘_calc_bonuses’:
- r_ring.c:1468:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
- 1468 | if (_essences[OF_ESP_NONLIVING] >= 2)
- | ^~
- r_ring.c:1470:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
- 1470 | if (_essences[OF_ESP_LIVING] >= 2)
- | ^~
- r_ring.c: In function ‘_get_flags’:
- r_ring.c:1574:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
- 1574 | if (_essences[OF_ESP_NONLIVING] >= 2)
- | ^~
- r_ring.c:1576:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
- 1576 | if (_essences[OF_ESP_LIVING] >= 2)
- | ^~
- Successfully compiled r_ring.c
- Compiling r_sword.c...
- r_sword.c: In function ‘_calc_bonuses’:
- r_sword.c:534:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
- 534 | if (_essences[OF_ESP_NONLIVING] >= 2)
- | ^~
- r_sword.c:536:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
- 536 | if (_essences[OF_ESP_LIVING] >= 2)
- | ^~
- r_sword.c: In function ‘_get_flags’:
- r_sword.c:625:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
- 625 | if (_essences[OF_ESP_NONLIVING] >= 2)
- | ^~
- r_sword.c:627:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
- 627 | if (_essences[OF_ESP_LIVING] >= 2)
- | ^~
- Successfully compiled r_sword.c
- Compiling r_troll.c...
- Successfully compiled r_troll.c
- Compiling r_vamp.c...
- Successfully compiled r_vamp.c
- Compiling r_vortex.c...
- Successfully compiled r_vortex.c
- Compiling r_xorn.c...
- Successfully compiled r_xorn.c
- Compiling racial.c...
- Successfully compiled racial.c
- Compiling ragemage.c...
- ragemage.c: In function ‘_evasive_leap_spell’:
- ragemage.c:247:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 247 | if (p_ptr->shero)
- | ^
- ragemage.c:252:5: note: here
- 252 | default:
- | ^~~~~~~
- ragemage.c: In function ‘_object_dam_type’:
- ragemage.c:566:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 566 | switch (randint1(5))
- | ^~~~~~
- ragemage.c:576:5: note: here
- 576 | case EFFECT_CONFUSE_MONSTERS:
- | ^~~~
- Successfully compiled ragemage.c
- Compiling randname.c...
- Successfully compiled randname.c
- Compiling ranger.c...
- Successfully compiled ranger.c
- Compiling rect.c...
- Successfully compiled rect.c
- Compiling red_mage.c...
- Successfully compiled red_mage.c
- Compiling resist.c...
- Successfully compiled resist.c
- Compiling rogue.c...
- Successfully compiled rogue.c
- Compiling rooms.c...
- Successfully compiled rooms.c
- Compiling rune_kt.c...
- Successfully compiled rune_kt.c
- Compiling samurai.c...
- Successfully compiled samurai.c
- Compiling save.c...
- save.c: In function ‘wr_extra’:
- save.c:860:13: warning: the comparison will always evaluate as ‘true’ for the address of ‘power_labels’ will never be NULL [-Waddress]
- 860 | if (!power_labels[i]) savefile_write_byte(file, 0xFF);
- | ^
- In file included from angband.h:62,
- from save.c:13:
- externs.h:555:13: note: ‘power_labels’ declared here
- 555 | extern char power_labels[MAX_POWER_LABEL][15];
- | ^~~~~~~~~~~~
- save.c: In function ‘save_floor’:
- save.c:1900:32: warning: ‘.F’ directive writing 2 bytes into a region of size between 1 and 1024 [-Wformat-overflow=]
- 1900 | sprintf(floor_savefile, "%s.F%02d", savefile, (int)sf_ptr->savefile_id);
- | ^~
- save.c:1900:29: note: directive argument in the range [0, 255]
- 1900 | sprintf(floor_savefile, "%s.F%02d", savefile, (int)sf_ptr->savefile_id);
- | ^~~~~~~~~~
- save.c:1900:5: note: ‘sprintf’ output between 5 and 1029 bytes into a destination of size 1024
- 1900 | sprintf(floor_savefile, "%s.F%02d", savefile, (int)sf_ptr->savefile_id);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Successfully compiled save.c
- Compiling savefile.c...
- Successfully compiled savefile.c
- Compiling scores.c...
- Successfully compiled scores.c
- Compiling scout.c...
- Successfully compiled scout.c
- Compiling shop.c...
- shop.c: In function ‘_stock_base’:
- shop.c:2107:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
- 2107 | if (shop->type->id == SHOP_GENERAL)
- | ^~
- shop.c:2109:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
- 2109 | if (shop->type->id == SHOP_SHROOMERY)
- | ^~
- shop.c: In function ‘_loop’:
- shop.c:1508:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 1508 | if (p_ptr->wizard) _wizard_stock(context->shop);
- | ^
- shop.c:1509:13: note: here
- 1509 | case KTRL('S'):
- | ^~~~
- Successfully compiled shop.c
- Compiling skillmaster.c...
- skillmaster.c: In function ‘_skills_calc_bonuses’:
- skillmaster.c:1210:30: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 1210 | case 3: p_ptr->telepathy = TRUE;
- skillmaster.c:1211:5: note: here
- 1211 | case 2: p_ptr->auto_pseudo_id = TRUE;
- | ^~~~
- skillmaster.c:1211:35: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 1211 | case 2: p_ptr->auto_pseudo_id = TRUE;
- skillmaster.c:1212:5: note: here
- 1212 | case 1: p_ptr->see_inv++;
- | ^~~~
- In file included from angband.h:42,
- from skillmaster.c:1:
- skillmaster.c: In function ‘_skills_get_flags’:
- defines.h:2826:53: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 2826 | #define add_flag(ARRAY, INDEX) ((ARRAY)[(INDEX)/32] |= (1L << ((INDEX)%32)))
- | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
- skillmaster.c:1229:13: note: in expansion of macro ‘add_flag’
- 1229 | case 3: add_flag(flgs, OF_TELEPATHY);
- | ^~~~~~~~
- skillmaster.c:1230:5: note: here
- 1230 | case 2: add_flag(flgs, OF_LORE2);
- | ^~~~
- defines.h:2826:53: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 2826 | #define add_flag(ARRAY, INDEX) ((ARRAY)[(INDEX)/32] |= (1L << ((INDEX)%32)))
- | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
- skillmaster.c:1230:13: note: in expansion of macro ‘add_flag’
- 1230 | case 2: add_flag(flgs, OF_LORE2);
- | ^~~~~~~~
- skillmaster.c:1231:5: note: here
- 1231 | case 1: add_flag(flgs, OF_SEE_INVIS);
- | ^~~~
- Successfully compiled skillmaster.c
- Compiling skills.c...
- Successfully compiled skills.c
- Compiling sniper.c...
- Successfully compiled sniper.c
- Compiling sorcerer.c...
- Successfully compiled sorcerer.c
- Compiling spells.c...
- Successfully compiled spells.c
- Compiling spells1.c...
- spells1.c: In function ‘project_f’:
- spells1.c:963:13: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
- 963 | else message = "burns up!";break;
- | ^~~~
- spells1.c:963:40: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
- 963 | else message = "burns up!";break;
- | ^~~~~
- Successfully compiled spells1.c
- Compiling spells2.c...
- spells2.c: In function ‘activate_ty_curse’:
- spells2.c:4264:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 4264 | if (!(*count))
- | ^
- spells2.c:4271:9: note: here
- 4271 | case 30: case 31:
- | ^~~~
- spells2.c:4272:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 4272 | if (!(*count))
- | ^
- spells2.c:4281:9: note: here
- 4281 | case 32: case 33:
- | ^~~~
- spells2.c:4282:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 4282 | if (!(*count))
- | ^
- spells2.c:4290:9: note: here
- 4290 | case 34:
- | ^~~~
- spells2.c:4299:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 4299 | if (!one_in_(6)) break;
- | ^
- spells2.c:4300:9: note: here
- 4300 | case 1: case 2: case 3: case 16: case 17:
- | ^~~~
- spells2.c:4302:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 4302 | if (!one_in_(6)) break;
- | ^
- spells2.c:4303:9: note: here
- 4303 | case 4: case 5: case 6:
- | ^~~~
- spells2.c:4305:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 4305 | if (!one_in_(6)) break;
- | ^
- spells2.c:4306:9: note: here
- 4306 | case 7: case 8: case 9: case 18:
- | ^~~~
- spells2.c:4308:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 4308 | if (!one_in_(6)) break;
- | ^
- spells2.c:4309:9: note: here
- 4309 | case 10: case 11: case 12:
- | ^~~~
- spells2.c:4313:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 4313 | if (!one_in_(6)) break;
- | ^
- spells2.c:4314:9: note: here
- 4314 | case 13: case 14: case 15: case 19: case 20:
- | ^~~~
- spells2.c:4332:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 4332 | if (!one_in_(6)) break;
- | ^
- spells2.c:4333:9: note: here
- 4333 | case 21: case 22: case 23:
- | ^~~~
- spells2.c:4335:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 4335 | if (!one_in_(6)) break;
- | ^
- spells2.c:4336:9: note: here
- 4336 | case 24:
- | ^~~~
- spells2.c:4337:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 4337 | if (!never_forget)
- | ^
- spells2.c:4344:9: note: here
- 4344 | case 25:
- | ^~~~
- Successfully compiled spells2.c
- Compiling spells3.c...
- Successfully compiled spells3.c
- Compiling spells_a.c...
- Successfully compiled spells_a.c
- Compiling spells_c.c...
- Successfully compiled spells_c.c
- Compiling spells_h.c...
- Successfully compiled spells_h.c
- Compiling spells_m.c...
- Successfully compiled spells_m.c
- Compiling spells_s.c...
- spells_s.c: In function ‘teleport_spell’:
- spells_s.c:1559:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 1559 | if (mut_present(MUT_ASTRAL_GUIDE))
- | ^
- spells_s.c:1564:5: note: here
- 1564 | default:
- | ^~~~~~~
- Successfully compiled spells_s.c
- Compiling spoilers.c...
- Successfully compiled spoilers.c
- Compiling str-map.c...
- Successfully compiled str-map.c
- Compiling streams.c...
- Successfully compiled streams.c
- Compiling tables.c...
- Successfully compiled tables.c
- Compiling timelord.c...
- Successfully compiled timelord.c
- Compiling tourist.c...
- Successfully compiled tourist.c
- Compiling troika.c...
- Successfully compiled troika.c
- Compiling util.c...
- util.c: In function ‘askfor_aux’:
- util.c:2816:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 2816 | pos = i;
- | ~~~~^~~
- util.c:2821:9: note: here
- 2821 | case 0x7F:
- | ^~~~
- Successfully compiled util.c
- Compiling variable.c...
- Successfully compiled variable.c
- Compiling variant.c...
- Successfully compiled variant.c
- Compiling warlock.c...
- warlock.c: In function ‘_mount_jump_spell’:
- warlock.c:890:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 890 | if (!p_ptr->riding)
- | ^
- warlock.c:896:5: note: here
- 896 | default:
- | ^~~~~~~
- warlock.c: In function ‘_dragonrider_ai’:
- warlock.c:996:44: warning: ‘%s’ directive writing up to 254 bytes into a region of size 246 [-Wformat-overflow=]
- 996 | sprintf(cast->name2, "<color:o>%s</color>", tmp);
- | ^~ ~~~
- warlock.c:996:13: note: ‘sprintf’ output between 18 and 272 bytes into a destination of size 255
- 996 | sprintf(cast->name2, "<color:o>%s</color>", tmp);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Successfully compiled warlock.c
- Compiling warrior.c...
- Successfully compiled warrior.c
- Compiling warrior_mage.c...
- Successfully compiled warrior_mage.c
- Compiling weaponmaster.c...
- Successfully compiled weaponmaster.c
- Compiling weaponsmith.c...
- Successfully compiled weaponsmith.c
- Compiling werewolf.c...
- Successfully compiled werewolf.c
- Compiling wild.c...
- Successfully compiled wild.c
- Compiling wild_realm.c...
- Successfully compiled wild_realm.c
- Compiling wild_talent.c...
- Successfully compiled wild_talent.c
- Compiling wizard1.c...
- wizard1.c: In function ‘spoil_spells_by_class’:
- wizard1.c:2306:19: warning: cast between incompatible function types from ‘int (*)(int, int)’ to ‘int (*)(const void *, const void *)’ [-Wcast-function-type]
- 2306 | vec_sort(vec, (vec_cmp_f)_cmp_class_name);
- | ^
- wizard1.c: In function ‘_spoil_spells_by_realm_aux2’:
- wizard1.c:2407:19: warning: cast between incompatible function types from ‘int (*)(int, int)’ to ‘int (*)(const void *, const void *)’ [-Wcast-function-type]
- 2407 | vec_sort(vec, (vec_cmp_f)_cmp_class_name);
- | ^
- wizard1.c: In function ‘_spoil_spells_by_realm_aux1’:
- wizard1.c:2455:19: warning: cast between incompatible function types from ‘int (*)(int, int)’ to ‘int (*)(const void *, const void *)’ [-Wcast-function-type]
- 2455 | vec_sort(vec, (vec_cmp_f)_cmp_class_name);
- | ^
- Successfully compiled wizard1.c
- Compiling wizard2.c...
- Successfully compiled wizard2.c
- Compiling wiz_obj.c...
- Successfully compiled wiz_obj.c
- Compiling xtra1.c...
- xtra1.c: In function ‘_calc_xtra_hp_aux’:
- xtra1.c:3468:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 3468 | switch (p_ptr->psubclass)
- | ^~~~~~
- xtra1.c:3481:5: note: here
- 3481 | case CLASS_ROGUE:
- | ^~~~
- Successfully compiled xtra1.c
- Compiling xtra2.c...
- xtra2.c: In function ‘target_set’:
- xtra2.c:4749:23: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 4749 | x = px;
- | ~~^~~~
- xtra2.c:4752:17: note: here
- 4752 | case 'o':
- | ^~~~
- Successfully compiled xtra2.c
- Compiling yellow_mage.c...
- Successfully compiled yellow_mage.c
- Compiling yeqrezh.c...
- Successfully compiled yeqrezh.c
- Compiling c-string.c...
- Successfully compiled c-string.c
- Compiling c-vec.c...
- Successfully compiled c-vec.c
- Compiling z-doc.c...
- z-doc.c: In function ‘doc_display_aux’:
- z-doc.c:1822:161: warning: ‘%s’ directive writing up to 1023 bytes into a region of size 130 [-Wformat-overflow=]
- 1822 | ly accepts HTML dumps.\n<color:y>Save dump as</color> <color:R>%s</color><color:y>? [y/n]</color>", nuname);
- | ^~ ~~~~~~
- z-doc.c:1822:17: note: ‘sprintf’ output between 159 and 1182 bytes into a destination of size 256
- 1822 | sprintf(prompt, "Please note that the FrogComposband Ladder at angband.oook.cz only accepts HTML dumps.\n<color:y>Save dump as</color> <color:R>%s</color><color:y>? [y/n]</color>", nuname);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Successfully compiled z-doc.c
- Compiling z-form.c...
- Successfully compiled z-form.c
- Compiling z-rand.c...
- Successfully compiled z-rand.c
- Compiling z-term.c...
- Successfully compiled z-term.c
- Compiling z-util.c...
- Successfully compiled z-util.c
- Compiling z-virt.c...
- Successfully compiled z-virt.c
- Compiling main.c...
- Successfully compiled main.c
- Compiling main-x11.c...
- Successfully compiled main-x11.c
- Compiling main-sdl.c...
- main-sdl.c: In function ‘Term_xtra_sdl’:
- main-sdl.c:3165:13: warning: implicit declaration of function ‘play_sound’ [-Wimplicit-function-declaration]
- 3165 | play_sound(v);
- | ^~~~~~~~~~
- main-sdl.c: In function ‘load_gfx’:
- main-sdl.c:3692:19: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 3692 | Pixel = *p;
- | ~~~~~~^~~~
- main-sdl.c:3694:9: note: here
- 3694 | case 2:
- | ^~~~
- main-sdl.c:3697:19: warning: this statement may fall through [-Wimplicit-fallthrough=]
- 3697 | Pixel = *p;
- | ~~~~~~^~~~
- main-sdl.c:3699:9: note: here
- 3699 | case 3:
- | ^~~~
- Successfully compiled main-sdl.c
- /usr/bin/ld: main-sdl.o: in function `Term_xtra_sdl':
- /home/swim/Desktop/GAMES/Frogcomposband/frogcomposband-7.1.salmiak/src/main-sdl.c:3165:(.text+0x503f): undefined reference to `play_sound'
- collect2: error: ld returned 1 exit status
- make[3]: *** [Makefile:23: frogcomposband] Error 1
- make[3]: Leaving directory '/home/swim/Desktop/GAMES/Frogcomposband/frogcomposband-7.1.salmiak/src'
- make[2]: *** [../mk/buildsys.mk:112: all] Error 2
- make[2]: Leaving directory '/home/swim/Desktop/GAMES/Frogcomposband/frogcomposband-7.1.salmiak/src'
- make[1]: *** [mk/buildsys.mk:117: subdirs] Error 2
- make[1]: Leaving directory '/home/swim/Desktop/GAMES/Frogcomposband/frogcomposband-7.1.salmiak'
- make: *** [mk/buildsys.mk:110: all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment