Skip to content

Instantly share code, notes, and snippets.

@dchmelik
Created February 8, 2023 02:28
Show Gist options
  • Save dchmelik/ddd1e083abd537096dc0d2e425c2d9b2 to your computer and use it in GitHub Desktop.
Save dchmelik/ddd1e083abd537096dc0d2e425c2d9b2 to your computer and use it in GitHub Desktop.
tome2 make err log
[ 1%] Building CXX object src/squelch/CMakeFiles/squelch.dir/condition_metadata.cc.o
[ 2%] Building CXX object src/squelch/CMakeFiles/squelch.dir/cursor.cc.o
[ 3%] Building CXX object src/squelch/CMakeFiles/squelch.dir/automatizer.cc.o
[ 3%] Building CXX object src/squelch/CMakeFiles/squelch.dir/condition.cc.o
[ 4%] Building CXX object src/CMakeFiles/game_main.dir/main.cc.o
[ 5%] Building CXX object src/squelch/CMakeFiles/squelch.dir/object_status.cc.o
[ 5%] Building CXX object src/CMakeFiles/game.dir/birth.cc.o
[ 5%] Building CXX object src/squelch/CMakeFiles/squelch.dir/rule.cc.o
[ 6%] Building CXX object src/squelch/CMakeFiles/squelch.dir/tree_printer.cc.o
[ 7%] Building CXX object src/CMakeFiles/game.dir/bldg.cc.o
[ 8%] Building CXX object src/CMakeFiles/game.dir/cave.cc.o
[ 9%] Building CXX object src/CMakeFiles/game.dir/cmd1.cc.o
[ 10%] Building CXX object src/CMakeFiles/game.dir/cmd3.cc.o
[ 11%] Building CXX object src/CMakeFiles/game.dir/cmd4.cc.o
[ 11%] Building CXX object src/CMakeFiles/game.dir/cmd2.cc.o
[ 12%] Building CXX object src/CMakeFiles/game.dir/cmd5.cc.o
[ 12%] Building CXX object src/CMakeFiles/game.dir/cmd6.cc.o
[ 13%] Building CXX object src/CMakeFiles/game.dir/cmd7.cc.o
[ 14%] Building CXX object src/CMakeFiles/game.dir/corrupt.cc.o
[ 14%] Building CXX object src/CMakeFiles/game.dir/dice.cc.o
[ 15%] Building CXX object src/CMakeFiles/game.dir/dungeon.cc.o
[ 17%] Building CXX object src/CMakeFiles/game.dir/device_allocation.cc.o
[ 18%] Building CXX object src/CMakeFiles/game.dir/frontend.cc.o
[ 18%] Building CXX object src/CMakeFiles/game.dir/files.cc.o
[ 19%] Building CXX object src/CMakeFiles/game.dir/game_edit_data.cc.o
[ 18%] Building CXX object src/CMakeFiles/game.dir/format_ext.cc.o
[ 20%] Building CXX object src/CMakeFiles/game.dir/game.cc.o
[ 21%] Building CXX object src/CMakeFiles/game.dir/gen_evol.cc.o
[ 21%] Building CXX object src/CMakeFiles/game.dir/gen_maze.cc.o
[ 22%] Building CXX object src/CMakeFiles/game.dir/gods.cc.o
[ 23%] Building CXX object src/CMakeFiles/game.dir/generate.cc.o
[ 24%] Building CXX object src/CMakeFiles/game.dir/help.cc.o
[ 24%] Building CXX object src/CMakeFiles/game.dir/hiscore.cc.o
[ 25%] Building CXX object src/CMakeFiles/game.dir/hooks.cc.o
[ 26%] Building CXX object src/CMakeFiles/game.dir/init1.cc.o
[ 27%] Building CXX object src/CMakeFiles/game.dir/init2.cc.o
[ 27%] Building CXX object src/CMakeFiles/game.dir/joke.cc.o
[ 28%] Building CXX object src/CMakeFiles/game.dir/level_marker.cc.o
[ 30%] Building CXX object src/CMakeFiles/game.dir/key_queue.cc.o
[ 29%] Building CXX object src/CMakeFiles/game.dir/level_data.cc.o
[ 31%] Building CXX object src/CMakeFiles/game.dir/levels.cc.o
[ 31%] Building CXX object src/CMakeFiles/game.dir/loadsave.cc.o
[ 32%] Building CXX object src/CMakeFiles/game.dir/lua_bind.cc.o
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/cmd2.cc: In function ‘void do_cmd_sacrifice()’:
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/cmd2.cc:3780:62: warning: the address of ‘deity_type::desc’ will never be NULL [-Waddress]
3780 | if (deity_info[agod].desc[i] != NULL)
| ^
In file included from /home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/variable.hpp:7,
from /home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/cmd2.cc:49:
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/deity_type.hpp:10:14: note: ‘deity_type::desc’ declared here
10 | char desc[10][80];
| ^~~~
[ 33%] Building CXX object src/CMakeFiles/game.dir/melee1.cc.o
[ 34%] Building CXX object src/CMakeFiles/game.dir/melee2.cc.o
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/squelch/condition.cc: In static member function ‘static std::shared_ptr<squelch::Condition> squelch::Condition::parse_condition(const jsoncons::json&)’:
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/squelch/condition.cc:89:21: error: ‘map’ in namespace ‘std’ does not name a template type
89 | static std::map< match_type,
| ^~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/squelch/condition.cc:26:1: note: ‘std::map’ is defined in header ‘<map>’; did you forget to ‘#include <map>’?
25 | #include <fmt/format.h>
+++ |+#include <map>
26 |
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/squelch/condition.cc:132:25: error: ‘parsers’ was not declared in this scope; did you mean ‘parser_i’?
132 | auto parser_i = parsers.find(match);
| ^~~~~~~
| parser_i
[ 35%] Linking CXX static library libgame_main.a
[ 35%] Building CXX object src/CMakeFiles/game.dir/message.cc.o
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/cmd6.cc: In function ‘void do_cmd_drink_fountain()’:
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/cmd6.cc:2425:25: warning: variable ‘pval’ set but not used [-Wunused-but-set-variable]
2425 | int tval, sval, pval = 0;
| ^~~~
In file included from /usr/include/c++/12.2.0/cassert:44,
from /home/d/math/src/games/roguelike/moria_angband_tome/tome2/vendor/fmt-4.1.0/fmt/format.h:32,
from /home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/cmd3.cc:45:
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/cmd3.cc: In function ‘void do_cmd_query_symbol()’:
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/cmd3.cc:1525:34: warning: comparison of unsigned expression in ‘>= 0’ is always true [-Wtype-limits]
1525 | assert(i >= 0);
| ~~^~~~
[ 36%] Building CXX object src/CMakeFiles/game.dir/messages.cc.o
[ 36%] Built target game_main
[ 37%] Building CXX object src/CMakeFiles/game.dir/mimic.cc.o
[ 38%] Building CXX object src/CMakeFiles/game.dir/modules.cc.o
[ 38%] Building CXX object src/CMakeFiles/game.dir/monster_spell.cc.o
[ 39%] Building CXX object src/CMakeFiles/game.dir/monster_type.cc.o
[ 41%] Building CXX object src/CMakeFiles/game.dir/monster1.cc.o
[ 40%] Building CXX object src/CMakeFiles/game.dir/monster2.cc.o
[ 41%] Building CXX object src/CMakeFiles/game.dir/monster3.cc.o
[ 42%] Building CXX object src/CMakeFiles/game.dir/notes.cc.o
[ 43%] Building CXX object src/CMakeFiles/game.dir/object1.cc.o
make[2]: *** [src/squelch/CMakeFiles/squelch.dir/build.make:90: src/squelch/CMakeFiles/squelch.dir/condition.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 44%] Building CXX object src/CMakeFiles/game.dir/object2.cc.o
[ 45%] Building CXX object src/CMakeFiles/game.dir/object_filter.cc.o
[ 45%] Building CXX object src/CMakeFiles/game.dir/object_flag_meta.cc.o
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/generate.cc: In function ‘void build_recursive_room(int, int, int, int, int)’:
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/generate.cc:5325:31: warning: this statement may fall through [-Wimplicit-fallthrough=]
5325 | power += 2;
| ~~~~~~^~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/generate.cc:5331:9: note: here
5331 | case 4:
| ^~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/dungeon.cc: In function ‘void process_world()’:
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/dungeon.cc:1221:49: warning: ‘%s’ directive writing up to 79 bytes into a region of size 71 [-Wformat-overflow=]
1221 | sprintf(ouch, "wielding %s", o_name);
| ^~ ~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/dungeon.cc:1221:32: note: ‘sprintf’ output between 10 and 89 bytes into a destination of size 80
1221 | sprintf(ouch, "wielding %s", o_name);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/cmd4.cc: In function ‘void do_cmd_options_win()’:
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/cmd4.cc:894:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
894 | }
| ^
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/cmd4.cc:896:17: note: here
896 | case 'y':
| ^~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/init2.cc: In function ‘void init_angband(const program_args&)’:
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/init2.cc:1055:50: warning: ‘%s’ directive writing up to 1023 bytes into a region of size 1005 [-Wformat-overflow=]
1055 | sprintf(why, "Cannot access the '%s' file!", buf);
| ^~ ~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/init2.cc:1055:24: note: ‘sprintf’ output between 27 and 1050 bytes into a destination of size 1024
1055 | sprintf(why, "Cannot access the '%s' file!", buf);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/init2.cc:1116:58: warning: ‘%s’ directive writing up to 1023 bytes into a region of size 1005 [-Wformat-overflow=]
1116 | sprintf(why, "Cannot create the '%s' file!", buf);
| ^~ ~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/init2.cc:1116:32: note: ‘sprintf’ output between 27 and 1050 bytes into a destination of size 1024
1116 | sprintf(why, "Cannot create the '%s' file!", buf);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 47%] Building CXX object src/CMakeFiles/game.dir/options.cc.o
[ 47%] Building CXX object src/CMakeFiles/game.dir/player_type.cc.o
make[1]: *** [CMakeFiles/Makefile2:336: src/squelch/CMakeFiles/squelch.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 47%] Building CXX object src/CMakeFiles/game.dir/powers.cc.o
[ 48%] Building CXX object src/CMakeFiles/game.dir/program_args.cc.o
[ 49%] Building CXX object src/CMakeFiles/game.dir/q_bounty.cc.o
[ 50%] Building CXX object src/CMakeFiles/game.dir/q_betwen.cc.o
[ 50%] Building CXX object src/CMakeFiles/game.dir/q_dragons.cc.o
[ 53%] Building CXX object src/CMakeFiles/game.dir/q_god.cc.o
[ 53%] Building CXX object src/CMakeFiles/game.dir/q_evil.cc.o
[ 53%] Building CXX object src/CMakeFiles/game.dir/q_eol.cc.o
[ 53%] Building CXX object src/CMakeFiles/game.dir/q_fireprof.cc.o
[ 54%] Building CXX object src/CMakeFiles/game.dir/q_haunted.cc.o
[ 55%] Building CXX object src/CMakeFiles/game.dir/q_hobbit.cc.o
[ 56%] Building CXX object src/CMakeFiles/game.dir/q_invas.cc.o
[ 57%] Building CXX object src/CMakeFiles/game.dir/q_library.cc.o
[ 57%] Building CXX object src/CMakeFiles/game.dir/q_main.cc.o
[ 58%] Building CXX object src/CMakeFiles/game.dir/q_narsil.cc.o
[ 59%] Building CXX object src/CMakeFiles/game.dir/q_nazgul.cc.o
[ 60%] Building CXX object src/CMakeFiles/game.dir/q_nirna.cc.o
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/object2.cc: In function ‘bool object_similar(const object_type*, const object_type*)’:
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/object2.cc:1533:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
1533 | if (o_ptr->timeout != j_ptr->timeout) return false;
| ^~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/object2.cc:1539:9: note: here
1539 | case TV_BOLT:
| ^~~~
[ 60%] Building CXX object src/CMakeFiles/game.dir/q_one.cc.o
[ 61%] Building CXX object src/CMakeFiles/game.dir/q_rand.cc.o
[ 62%] Building CXX object src/CMakeFiles/game.dir/q_poison.cc.o
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/cmd1.cc: In function ‘int see_obstacle_grid(cave_type*)’:
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/cmd1.cc:3104:42: warning: this statement may fall through [-Wimplicit-fallthrough=]
3104 | if (p_ptr->ffall || p_ptr->fly) return false;
| ~~~~~~~~~~~~~^~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/cmd1.cc:3108:9: note: here
3108 | case FEAT_DEEP_LAVA:
| ^~~~
[ 63%] Building CXX object src/CMakeFiles/game.dir/q_shroom.cc.o
[ 63%] Building CXX object src/CMakeFiles/game.dir/q_spider.cc.o
[ 64%] Building CXX object src/CMakeFiles/game.dir/q_thief.cc.o
[ 66%] Building CXX object src/CMakeFiles/game.dir/q_thrain.cc.o
[ 65%] Building CXX object src/CMakeFiles/game.dir/q_ultrae.cc.o
[ 65%] Building CXX object src/CMakeFiles/game.dir/q_troll.cc.o
[ 67%] Building CXX object src/CMakeFiles/game.dir/q_ultrag.cc.o
[ 69%] Building CXX object src/CMakeFiles/game.dir/q_wolves.cc.o
[ 68%] Building CXX object src/CMakeFiles/game.dir/q_wight.cc.o
[ 70%] Building CXX object src/CMakeFiles/game.dir/range.cc.o
[ 70%] Building CXX object src/CMakeFiles/game.dir/quest.cc.o
[ 71%] Building CXX object src/CMakeFiles/game.dir/randart.cc.o
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/melee2.cc: In function ‘void process_monsters()’:
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/melee2.cc:6381:14: warning: variable ‘is_frien’ set but not used [-Wunused-but-set-variable]
6381 | bool is_frien = false;
| ^~~~~~~~
[ 72%] Building CXX object src/CMakeFiles/game.dir/skills.cc.o
[ 72%] Building CXX object src/CMakeFiles/game.dir/spell_type.cc.o
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/notes.cc: In function ‘void add_note(char*, char)’:
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/notes.cc:92:43: warning: ‘%s’ directive writing up to 99 bytes into a region of size between 15 and 75 [-Wformat-overflow=]
92 | sprintf(final_note, "%-20s %s %c: %s", turn_s, depths, code, buf);
| ^~ ~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/notes.cc:92:16: note: ‘sprintf’ output between 26 and 185 bytes into a destination of size 100
92 | sprintf(final_note, "%-20s %s %c: %s", turn_s, depths, code, buf);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 73%] Building CXX object src/CMakeFiles/game.dir/spells2.cc.o
[ 74%] Building CXX object src/CMakeFiles/game.dir/spells1.cc.o
[ 75%] Building CXX object src/CMakeFiles/game.dir/spells3.cc.o
[ 75%] Building CXX object src/CMakeFiles/game.dir/spells4.cc.o
[ 76%] Building CXX object src/CMakeFiles/game.dir/spells5.cc.o
[ 77%] Building CXX object src/CMakeFiles/game.dir/spells6.cc.o
[ 78%] Building CXX object src/CMakeFiles/game.dir/squeltch.cc.o
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc: In function ‘const char* likert(int, int)’:
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:1329:53: warning: ‘]’ directive writing 1 byte into a region of size between 0 and 9 [-Wformat-overflow=]
1329 | sprintf(dummy, "Legendary[%d]", (int)((((x / y) - 17) * 5) / 2));
| ^
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:1329:32: note: ‘sprintf’ output between 13 and 22 bytes into a destination of size 20
1329 | sprintf(dummy, "Legendary[%d]", (int)((((x / y) - 17) * 5) / 2));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc: In function ‘void display_player_middle()’:
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:1238:36: warning: ‘%d’ directive writing between 1 and 5 bytes into a region of size 4 [-Wformat-overflow=]
1238 | sprintf(s, "Slow (-%d)", 110 - speed);
| ^~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:1238:28: note: directive argument in the range [1, 32878]
1238 | sprintf(s, "Slow (-%d)", 110 - speed);
| ^~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:1238:24: note: ‘sprintf’ output between 10 and 14 bytes into a destination of size 11
1238 | sprintf(s, "Slow (-%d)", 110 - speed);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:1232:36: warning: ‘%d’ directive writing between 1 and 5 bytes into a region of size 4 [-Wformat-overflow=]
1232 | sprintf(s, "Fast (+%d)", speed - 110);
| ^~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:1232:28: note: directive argument in the range [1, 32657]
1232 | sprintf(s, "Fast (+%d)", speed - 110);
| ^~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:1232:24: note: ‘sprintf’ output between 10 and 14 bytes into a destination of size 11
1232 | sprintf(s, "Fast (+%d)", speed - 110);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc: In function ‘errr top_twenty()’:
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4676:34: warning: ‘%ld’ directive writing between 1 and 11 bytes into a region of size 8 [-Wformat-overflow=]
4676 | sprintf(the_score.what, "%ld.%ld.%ld",
| ^~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4676:33: note: directive argument in the range [-2147483648, 2147483647]
4676 | sprintf(the_score.what, "%ld.%ld.%ld",
| ^~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4676:33: note: directive argument in the range [-2147483648, 2147483647]
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4676:33: note: directive argument in the range [-2147483648, 2147483647]
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4676:16: note: ‘sprintf’ output between 6 and 36 bytes into a destination of size 8
4676 | sprintf(the_score.what, "%ld.%ld.%ld",
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4677 | (long int) VERSION_MAJOR, (long int) VERSION_MINOR, (long int) VERSION_PATCH);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4698:36: warning: ‘sprintf’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
4698 | sprintf(the_score.p_r, "%2d", p_ptr->prace);
| ^
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4698:16: note: ‘sprintf’ output between 3 and 4 bytes into a destination of size 3
4698 | sprintf(the_score.p_r, "%2d", p_ptr->prace);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4699:36: warning: ‘sprintf’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
4699 | sprintf(the_score.p_s, "%2d", p_ptr->pracem);
| ^
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4699:16: note: ‘sprintf’ output between 3 and 4 bytes into a destination of size 3
4699 | sprintf(the_score.p_s, "%2d", p_ptr->pracem);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4700:36: warning: ‘sprintf’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
4700 | sprintf(the_score.p_c, "%2d", p_ptr->pclass);
| ^
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4700:16: note: ‘sprintf’ output between 3 and 4 bytes into a destination of size 3
4700 | sprintf(the_score.p_c, "%2d", p_ptr->pclass);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4701:37: warning: ‘sprintf’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
4701 | sprintf(the_score.p_cs, "%2d", p_ptr->pspec);
| ^
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4701:16: note: ‘sprintf’ output between 3 and 4 bytes into a destination of size 3
4701 | sprintf(the_score.p_cs, "%2d", p_ptr->pspec);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4704:37: warning: ‘%3d’ directive writing between 3 and 6 bytes into a region of size 4 [-Wformat-overflow=]
4704 | sprintf(the_score.cur_lev, "%3d", p_ptr->lev);
| ^~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4704:36: note: directive argument in the range [-32768, 32767]
4704 | sprintf(the_score.cur_lev, "%3d", p_ptr->lev);
| ^~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4704:16: note: ‘sprintf’ output between 4 and 7 bytes into a destination of size 4
4704 | sprintf(the_score.cur_lev, "%3d", p_ptr->lev);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4705:37: warning: ‘%3d’ directive writing between 3 and 6 bytes into a region of size 4 [-Wformat-overflow=]
4705 | sprintf(the_score.cur_dun, "%3d", dun_level);
| ^~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4705:36: note: directive argument in the range [-32768, 32767]
4705 | sprintf(the_score.cur_dun, "%3d", dun_level);
| ^~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4705:16: note: ‘sprintf’ output between 4 and 7 bytes into a destination of size 4
4705 | sprintf(the_score.cur_dun, "%3d", dun_level);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4706:37: warning: ‘%3d’ directive writing between 3 and 6 bytes into a region of size 4 [-Wformat-overflow=]
4706 | sprintf(the_score.max_lev, "%3d", p_ptr->max_plv);
| ^~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4706:36: note: directive argument in the range [-32768, 32767]
4706 | sprintf(the_score.max_lev, "%3d", p_ptr->max_plv);
| ^~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4706:16: note: ‘sprintf’ output between 4 and 7 bytes into a destination of size 4
4706 | sprintf(the_score.max_lev, "%3d", p_ptr->max_plv);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4707:37: warning: ‘%3d’ directive writing between 3 and 6 bytes into a region of size 4 [-Wformat-overflow=]
4707 | sprintf(the_score.max_dun, "%3d", max_dlv[dungeon_type]);
| ^~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4707:36: note: directive argument in the range [-32768, 32767]
4707 | sprintf(the_score.max_dun, "%3d", max_dlv[dungeon_type]);
| ^~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4707:16: note: ‘sprintf’ output between 4 and 7 bytes into a destination of size 4
4707 | sprintf(the_score.max_dun, "%3d", max_dlv[dungeon_type]);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4709:42: warning: ‘%3d’ directive writing between 3 and 6 bytes into a region of size 4 [-Wformat-overflow=]
4709 | sprintf(the_score.inside_quest, "%3d", p_ptr->inside_quest);
| ^~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4709:41: note: directive argument in the range [-32768, 32767]
4709 | sprintf(the_score.inside_quest, "%3d", p_ptr->inside_quest);
| ^~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4709:16: note: ‘sprintf’ output between 4 and 7 bytes into a destination of size 4
4709 | sprintf(the_score.inside_quest, "%3d", p_ptr->inside_quest);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc: In function ‘errr predict_score()’:
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4776:34: warning: ‘%ld’ directive writing between 1 and 11 bytes into a region of size 8 [-Wformat-overflow=]
4776 | sprintf(the_score.what, "%ld.%ld.%ld",
| ^~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4776:33: note: directive argument in the range [-2147483648, 2147483647]
4776 | sprintf(the_score.what, "%ld.%ld.%ld",
| ^~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4776:33: note: directive argument in the range [-2147483648, 2147483647]
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4776:33: note: directive argument in the range [-2147483648, 2147483647]
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4776:16: note: ‘sprintf’ output between 6 and 36 bytes into a destination of size 8
4776 | sprintf(the_score.what, "%ld.%ld.%ld",
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4777 | (long int) VERSION_MAJOR, (long int) VERSION_MINOR, (long int) VERSION_PATCH);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4798:36: warning: ‘sprintf’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
4798 | sprintf(the_score.p_r, "%2d", p_ptr->prace);
| ^
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4798:16: note: ‘sprintf’ output between 3 and 4 bytes into a destination of size 3
4798 | sprintf(the_score.p_r, "%2d", p_ptr->prace);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4799:36: warning: ‘sprintf’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
4799 | sprintf(the_score.p_s, "%2d", p_ptr->pracem);
| ^
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4799:16: note: ‘sprintf’ output between 3 and 4 bytes into a destination of size 3
4799 | sprintf(the_score.p_s, "%2d", p_ptr->pracem);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4800:36: warning: ‘sprintf’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
4800 | sprintf(the_score.p_c, "%2d", p_ptr->pclass);
| ^
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4800:16: note: ‘sprintf’ output between 3 and 4 bytes into a destination of size 3
4800 | sprintf(the_score.p_c, "%2d", p_ptr->pclass);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4801:37: warning: ‘sprintf’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
4801 | sprintf(the_score.p_cs, "%2d", p_ptr->pspec);
| ^
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4801:16: note: ‘sprintf’ output between 3 and 4 bytes into a destination of size 3
4801 | sprintf(the_score.p_cs, "%2d", p_ptr->pspec);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4804:37: warning: ‘%3d’ directive writing between 3 and 6 bytes into a region of size 4 [-Wformat-overflow=]
4804 | sprintf(the_score.cur_lev, "%3d", p_ptr->lev);
| ^~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4804:36: note: directive argument in the range [-32768, 32767]
4804 | sprintf(the_score.cur_lev, "%3d", p_ptr->lev);
| ^~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4804:16: note: ‘sprintf’ output between 4 and 7 bytes into a destination of size 4
4804 | sprintf(the_score.cur_lev, "%3d", p_ptr->lev);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4805:37: warning: ‘%3d’ directive writing between 3 and 6 bytes into a region of size 4 [-Wformat-overflow=]
4805 | sprintf(the_score.cur_dun, "%3d", dun_level);
| ^~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4805:36: note: directive argument in the range [-32768, 32767]
4805 | sprintf(the_score.cur_dun, "%3d", dun_level);
| ^~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4805:16: note: ‘sprintf’ output between 4 and 7 bytes into a destination of size 4
4805 | sprintf(the_score.cur_dun, "%3d", dun_level);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4806:37: warning: ‘%3d’ directive writing between 3 and 6 bytes into a region of size 4 [-Wformat-overflow=]
4806 | sprintf(the_score.max_lev, "%3d", p_ptr->max_plv);
| ^~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4806:36: note: directive argument in the range [-32768, 32767]
4806 | sprintf(the_score.max_lev, "%3d", p_ptr->max_plv);
| ^~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4806:16: note: ‘sprintf’ output between 4 and 7 bytes into a destination of size 4
4806 | sprintf(the_score.max_lev, "%3d", p_ptr->max_plv);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4807:37: warning: ‘%3d’ directive writing between 3 and 6 bytes into a region of size 4 [-Wformat-overflow=]
4807 | sprintf(the_score.max_dun, "%3d", max_dlv[dungeon_type]);
| ^~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4807:36: note: directive argument in the range [-32768, 32767]
4807 | sprintf(the_score.max_dun, "%3d", max_dlv[dungeon_type]);
| ^~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4807:16: note: ‘sprintf’ output between 4 and 7 bytes into a destination of size 4
4807 | sprintf(the_score.max_dun, "%3d", max_dlv[dungeon_type]);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4809:42: warning: ‘%3d’ directive writing between 3 and 6 bytes into a region of size 4 [-Wformat-overflow=]
4809 | sprintf(the_score.inside_quest, "%3d", p_ptr->inside_quest);
| ^~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4809:41: note: directive argument in the range [-32768, 32767]
4809 | sprintf(the_score.inside_quest, "%3d", p_ptr->inside_quest);
| ^~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:4809:16: note: ‘sprintf’ output between 4 and 7 bytes into a destination of size 4
4809 | sprintf(the_score.inside_quest, "%3d", p_ptr->inside_quest);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 78%] Building CXX object src/CMakeFiles/game.dir/store.cc.o
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc: In function ‘errr file_character(const char*)’:
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:2534:57: warning: ‘%s’ directive writing up to 1023 bytes into a region of size 138 [-Wformat-overflow=]
2534 | sprintf(out_val, "Replace existing file %s? ", buf);
| ^~ ~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/files.cc:2534:24: note: ‘sprintf’ output between 25 and 1048 bytes into a destination of size 160
2534 | sprintf(out_val, "Replace existing file %s? ", buf);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 79%] Building CXX object src/CMakeFiles/game.dir/tables.cc.o
[ 80%] Building CXX object src/CMakeFiles/game.dir/util.cc.o
[ 81%] Building CXX object src/CMakeFiles/game.dir/wizard2.cc.o
[ 81%] Building CXX object src/CMakeFiles/game.dir/wild.cc.o
[ 82%] Building CXX object src/CMakeFiles/game.dir/variable.cc.o
[ 83%] Building CXX object src/CMakeFiles/game.dir/seed.cc.o
[ 84%] Building CXX object src/CMakeFiles/game.dir/xtra1.cc.o
[ 85%] Building CXX object src/CMakeFiles/game.dir/z-form.cc.o
[ 85%] Building CXX object src/CMakeFiles/game.dir/xtra2.cc.o
[ 86%] Building CXX object src/CMakeFiles/game.dir/z-rand.cc.o
[ 87%] Building CXX object src/CMakeFiles/game.dir/z-term.cc.o
[ 88%] Building CXX object src/CMakeFiles/game.dir/z-util.cc.o
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/object1.cc: In function ‘std::string object_desc_aux(const object_type*, int, int)’:
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/object1.cc:1449:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
1449 | if (o_ptr->pval2 != 0)
| ^~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/object1.cc:1453:9: note: here
1453 | case TV_BOOMERANG:
| ^~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/spells2.cc: In function ‘void activate_ty_curse()’:
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/spells2.cc:4308:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
4308 | if (randint(6) != 1) break;
| ^~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/spells2.cc:4309:17: note: here
4309 | case 4:
| ^~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/spells2.cc:4313:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
4313 | if (randint(6) != 1) break;
| ^~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/spells2.cc:4314:1: note: here
4314 | case 7: case 8: case 9: case 18:
| ^~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/spells2.cc:4316:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
4316 | if (randint(6) != 1) break;
| ^~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/spells2.cc:4317:1: note: here
4317 | case 10: case 11: case 12:
| ^~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/spells2.cc:4320:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
4320 | if (randint(6) != 1) break;
| ^~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/spells2.cc:4321:1: note: here
4321 | case 13: case 14: case 15: case 19: case 20:
| ^~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/spells2.cc:4335:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
4335 | if (randint(6) != 1) break;
| ^~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/spells2.cc:4336:1: note: here
4336 | case 21: case 22: case 23:
| ^~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/spells2.cc:4338:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
4338 | if (randint(6) != 1) break;
| ^~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/spells2.cc:4339:17: note: here
4339 | case 24:
| ^~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/spells2.cc: In function ‘void activate_dg_curse()’:
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/spells2.cc:4387:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
4387 | if (randint(8) != 1) break;
| ^~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/spells2.cc:4388:17: note: here
4388 | case 4:
| ^~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/spells2.cc:4393:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
4393 | if (randint(8) != 1) break;
| ^~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/spells2.cc:4394:17: note: here
4394 | case 7:
| ^~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/spells2.cc:4399:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
4399 | if (randint(8) != 1) break;
| ^~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/spells2.cc:4400:17: note: here
4400 | case 10:
| ^~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/spells2.cc:4410:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
4410 | if (randint(8) != 1) break;
| ^~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/spells2.cc:4411:17: note: here
4411 | case 13:
| ^~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/spells2.cc:4427:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
4427 | if (randint(7) != 1) break;
| ^~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/spells2.cc:4428:17: note: here
4428 | case 19:
| ^~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/spells2.cc:4435:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
4435 | if (randint(7) != 1) break;
| ^~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/spells2.cc:4436:17: note: here
4436 | case 21:
| ^~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/spells2.cc:4440:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
4440 | if (randint(7) != 1) break;
| ^~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/spells2.cc:4441:17: note: here
4441 | case 24:
| ^~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/object1.cc: In function ‘void show_equip_aux(bool, const object_filter_t&)’:
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/object1.cc:3874:63: warning: ‘%s’ directive writing up to 79 bytes into a region of size 67 [-Wformat-overflow=]
3874 | sprintf(o_name, "(two handed) %s", q_name);
| ^~ ~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/object1.cc:3874:40: note: ‘sprintf’ output between 14 and 93 bytes into a destination of size 80
3874 | sprintf(o_name, "(two handed) %s", q_name);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/object1.cc: In function ‘bool get_item_floor(int*, const char*, const char*, int, const object_filter_t&, const select_by_name_t&)’:
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/object1.cc:4680:38: warning: ‘) ’ directive writing 2 bytes into a region of size between 0 and 159 [-Wformat-overflow=]
4680 | sprintf(tmp_val, "(%s) %s", out_val, pmt);
| ^~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/object1.cc:4680:24: note: ‘sprintf’ output 4 or more bytes (assuming 163) into a destination of size 160
4680 | sprintf(tmp_val, "(%s) %s", out_val, pmt);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/q_bounty.cc: In function ‘void quest_bounty_drop_item()’:
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/q_bounty.cc:102:74: warning: ‘%s’ directive output may be truncated writing up to 511 bytes into a region of size 483 [-Wformat-truncation=]
102 | snprintf(msg, sizeof(msg), "You still must bring me back %s corpse.", mdesc);
| ^~ ~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/q_bounty.cc:102:25: note: ‘snprintf’ output between 38 and 549 bytes into a destination of size 512
102 | snprintf(msg, sizeof(msg), "You still must bring me back %s corpse.", mdesc);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/q_bounty.cc:96:68: warning: ‘%s’ directive output may be truncated writing up to 511 bytes into a region of size 489 [-Wformat-truncation=]
96 | snprintf(msg, sizeof(msg), "You must bring me back %s corpse.", mdesc);
| ^~ ~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/q_bounty.cc:96:25: note: ‘snprintf’ output between 32 and 543 bytes into a destination of size 512
96 | snprintf(msg, sizeof(msg), "You must bring me back %s corpse.", mdesc);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/xtra2.cc: In function ‘bool target_set(int)’:
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/xtra2.cc:4444:49: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<point>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
4444 | if (++m == points.size())
| ~~~~^~~~~~~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/util.cc: In function ‘bool askfor_aux(char*, int)’:
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/util.cc:2583:37: warning: this statement may fall through [-Wimplicit-fallthrough=]
2583 | bell();
| ~~~~^~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/util.cc:2586:17: note: here
2586 | case 0x7F:
| ^~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/xtra2.cc:4481:43: warning: this statement may fall through [-Wimplicit-fallthrough=]
4481 | x = p_ptr->px;
| ~~^~~~~~~~~~~
/home/d/math/src/games/roguelike/moria_angband_tome/tome2/src/xtra2.cc:4486:25: note: here
4486 | case 'o':
| ^~~~
[ 88%] Linking CXX static library libgame.a
[ 88%] Built target game
make: *** [Makefile:136: all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment