>>> Building on sparc64-0c under games/dungeon-crawl BDEPENDS = [lang/gcc/16;lang/gcc/16,-libs;archivers/bzip2;lang/gcc/16,-c++] DIST = [games/dungeon-crawl:dc400b26-src.tbz2] FULLPKGNAME = dungeon-crawl-4.0.0b26p5 RDEPENDS = [lang/gcc/16,-libs] (Junk lock obtained for sparc64-0c at 1785063042.43) >>> Running depends in games/dungeon-crawl at 1785063042.55 last junk was in devel/py-wrapt /usr/sbin/pkg_add -aI -Drepair bzip2-1.0.8p0 was: /usr/sbin/pkg_add -aI -Drepair bzip2-1.0.8p0 g++-16.1.0p5 gcc-16.1.0p5 gcc-libs-16.1.0p5 /usr/sbin/pkg_add -aI -Drepair bzip2-1.0.8p0 >>> Running show-prepare-results in games/dungeon-crawl at 1785063052.76 ===> games/dungeon-crawl ===> Building from scratch dungeon-crawl-4.0.0b26p5 ===> dungeon-crawl-4.0.0b26p5 depends on: bzip2-* -> bzip2-1.0.8p0 ===> dungeon-crawl-4.0.0b26p5 depends on: gcc->=16,<17 -> gcc-16.1.0p5 ===> dungeon-crawl-4.0.0b26p5 depends on: g++->=16,<17 -> g++-16.1.0p5 ===> dungeon-crawl-4.0.0b26p5 depends on: gcc-libs->=16,<17 -> gcc-libs-16.1.0p5 ===> Verifying specs: c curses m estdc++>=22 pthread ===> found c.103.0 curses.16.0 m.10.1 estdc++.22.0 pthread.28.1 bzip2-1.0.8p0 g++-16.1.0p5 gcc-16.1.0p5 gcc-libs-16.1.0p5 Still tainted: host marked nojunk by databases/py-peewee >>> Running junk in games/dungeon-crawl at 1785063058.87 Can't run junk because of lock on databases/py-peewee (Junk lock released for sparc64-0c at 1785063066.19) Woken up net/jitsi/jicofo distfiles size=823712 >>> Running patch in games/dungeon-crawl at 1785063066.30 ===> games/dungeon-crawl ===> Checking files for dungeon-crawl-4.0.0b26p5 `/usr/ports/distfiles/dc400b26-src.tbz2' is up to date. >> (SHA256) all files: OK ===> Extracting for dungeon-crawl-4.0.0b26p5 ===> Patching for dungeon-crawl-4.0.0b26p5 ===> Applying OpenBSD patch patch-docs_crawl_6 Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- docs/crawl.6.orig Wed Sep 12 20:46:36 2001 |+++ docs/crawl.6 Tue Feb 17 18:53:51 2015 -------------------------- Patching file docs/crawl.6 using Plan A... Hunk #1 succeeded at 1. Hunk #2 succeeded at 708. Hunk #3 succeeded at 937. done ===> Applying OpenBSD patch patch-source_AppHdr_h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- source/AppHdr.h.orig Mon Mar 24 02:05:12 2003 |+++ source/AppHdr.h Wed Oct 19 13:14:04 2005 -------------------------- Patching file source/AppHdr.h using Plan A... Hunk #1 succeeded at 151. Hunk #2 succeeded at 167. Hunk #3 succeeded at 377. Hunk #4 succeeded at 391. done ===> Applying OpenBSD patch patch-source_describe_cc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: source/describe.cc |--- source/describe.cc.orig |+++ source/describe.cc -------------------------- Patching file source/describe.cc using Plan A... Hunk #1 succeeded at 21. done ===> Applying OpenBSD patch patch-source_direct_cc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |ppc, arm: fix the build where char is unsigned by default | |Index: source/direct.cc |--- source/direct.cc.orig |+++ source/direct.cc -------------------------- Patching file source/direct.cc using Plan A... Hunk #1 succeeded at 44. done ===> Applying OpenBSD patch patch-source_effects_cc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: source/effects.cc |--- source/effects.cc.orig |+++ source/effects.cc -------------------------- Patching file source/effects.cc using Plan A... Hunk #1 succeeded at 13. done ===> Applying OpenBSD patch patch-source_files_cc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- source/files.cc.orig Sat Oct 22 16:03:22 2005 |+++ source/files.cc Sat Oct 22 16:04:16 2005 -------------------------- Patching file source/files.cc using Plan A... Hunk #1 succeeded at 925. done ===> Applying OpenBSD patch patch-source_hiscores_cc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: source/hiscores.cc |--- source/hiscores.cc.orig |+++ source/hiscores.cc -------------------------- Patching file source/hiscores.cc using Plan A... Hunk #1 succeeded at 28. done ===> Applying OpenBSD patch patch-source_initfile_cc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: source/initfile.cc |--- source/initfile.cc.orig |+++ source/initfile.cc -------------------------- Patching file source/initfile.cc using Plan A... Hunk #1 succeeded at 15. done ===> Applying OpenBSD patch patch-source_it_use3_cc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: source/it_use3.cc |--- source/it_use3.cc.orig |+++ source/it_use3.cc -------------------------- Patching file source/it_use3.cc using Plan A... Hunk #1 succeeded at 15. done ===> Applying OpenBSD patch patch-source_itemname_cc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: source/itemname.cc |--- source/itemname.cc.orig |+++ source/itemname.cc -------------------------- Patching file source/itemname.cc using Plan A... Hunk #1 succeeded at 2785. done ===> Applying OpenBSD patch patch-source_liblinux_cc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: source/liblinux.cc |--- source/liblinux.cc.orig |+++ source/liblinux.cc -------------------------- Patching file source/liblinux.cc using Plan A... Hunk #1 succeeded at 487. done ===> Applying OpenBSD patch patch-source_libutil_cc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- source/libutil.cc.orig Tue Oct 18 23:51:48 2005 |+++ source/libutil.cc Tue Oct 18 23:51:54 2005 -------------------------- Patching file source/libutil.cc using Plan A... Hunk #1 succeeded at 11. done ===> Applying OpenBSD patch patch-source_macro_cc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: source/macro.cc |--- source/macro.cc.orig |+++ source/macro.cc -------------------------- Patching file source/macro.cc using Plan A... Hunk #1 succeeded at 39. done ===> Applying OpenBSD patch patch-source_mon-util_h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |ppc, arm: fix build where char is unsigned by default | |Index: source/mon-util.h |--- source/mon-util.h.orig |+++ source/mon-util.h -------------------------- Patching file source/mon-util.h using Plan A... Hunk #1 succeeded at 115. Hunk #2 succeeded at 144. done ===> Applying OpenBSD patch patch-source_monplace_cc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: source/monplace.cc |--- source/monplace.cc.orig |+++ source/monplace.cc -------------------------- Patching file source/monplace.cc using Plan A... Hunk #1 succeeded at 8. done ===> Applying OpenBSD patch patch-source_newgame_cc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: source/newgame.cc |--- source/newgame.cc.orig |+++ source/newgame.cc -------------------------- Patching file source/newgame.cc using Plan A... Hunk #1 succeeded at 253. Hunk #2 succeeded at 1916. done ===> Applying OpenBSD patch patch-source_ouch_h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- source/ouch.h.orig Fri Feb 28 02:55:32 2003 |+++ source/ouch.h Tue Feb 17 18:52:57 2015 -------------------------- Patching file source/ouch.h using Plan A... Hunk #1 succeeded at 54. done ===> Applying OpenBSD patch patch-source_randart_cc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: source/randart.cc |--- source/randart.cc.orig |+++ source/randart.cc -------------------------- Patching file source/randart.cc using Plan A... Hunk #1 succeeded at 17. done ===> Applying OpenBSD patch patch-source_religion_cc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- source/religion.cc.orig Tue Oct 18 23:53:56 2005 |+++ source/religion.cc Tue Oct 18 23:54:14 2005 -------------------------- Patching file source/religion.cc using Plan A... Hunk #1 succeeded at 53. done ===> Applying OpenBSD patch patch-source_skills2_cc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: source/skills2.cc |--- source/skills2.cc.orig |+++ source/skills2.cc -------------------------- Patching file source/skills2.cc using Plan A... Hunk #1 succeeded at 20. done ===> Applying OpenBSD patch patch-source_spells4_cc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: source/spells4.cc |--- source/spells4.cc.orig |+++ source/spells4.cc -------------------------- Patching file source/spells4.cc using Plan A... Hunk #1 succeeded at 12. done ===> Applying OpenBSD patch patch-source_spl-cast_h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- source/spl-cast.h.orig Fri Feb 28 02:55:32 2003 |+++ source/spl-cast.h Tue Feb 17 18:52:57 2015 -------------------------- Patching file source/spl-cast.h using Plan A... Hunk #1 succeeded at 43. done ===> Applying OpenBSD patch patch-source_tags_cc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: source/tags.cc |--- source/tags.cc.orig |+++ source/tags.cc -------------------------- Patching file source/tags.cc using Plan A... Hunk #1 succeeded at 55. done ===> Compiler link: gcc -> /usr/local/bin/egcc ===> Compiler link: cc -> /usr/local/bin/egcc ===> Compiler link: c++ -> /usr/local/bin/eg++ ===> Compiler link: g++ -> /usr/local/bin/eg++ >>> Running configure in games/dungeon-crawl at 1785063070.26 ===> games/dungeon-crawl ===> Generating configure for dungeon-crawl-4.0.0b26p5 ===> Configuring for dungeon-crawl-4.0.0b26p5 >>> Running build in games/dungeon-crawl at 1785063071.55 ===> games/dungeon-crawl ===> Building for dungeon-crawl-4.0.0b26p5 c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c abl-show.cc c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c abyss.cc c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c acr.cc acr.cc: In function 'void input()': acr.cc:1438:52: warning: '%s' directive output may be truncated writing up to 199 bytes into a region of size 189 [-Wformat-truncation=] 1438 | snprintf( info, INFO_SIZE, "Play time: %s (%ld turns)", | ^~ 1439 | buff, you.num_turns ); | ~~~~ acr.cc:1438:21: note: 'snprintf' output between 22 and 240 bytes into a destination of size 200 1438 | snprintf( info, INFO_SIZE, "Play time: %s (%ld turns)", | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1439 | buff, you.num_turns ); | ~~~~~~~~~~~~~~~~~~~~~ c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c beam.cc beam.cc: In function 'int mons_ench_f2(monsters*, bolt&)': beam.cc:1941:16: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-truncation] 1941 | strncpy( buff, ptr_monam( monster, DESC_CAP_THE ), sizeof(buff) ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ beam.cc:1949:47: warning: ' flickers ' directive output may be truncated writing 10 bytes into a region of size between 1 and 200 [-Wformat-truncation=] 1949 | snprintf( info, INFO_SIZE, "%s flickers %s", | ^~~~~~~~~~ beam.cc:1949:25: note: 'snprintf' output between 24 and 223 bytes into a destination of size 200 1949 | snprintf( info, INFO_SIZE, "%s flickers %s", | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1950 | buff, player_see_invis() ? "for a moment." | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1951 | : "and vanishes!" ); | ~~~~~~~~~~~~~~~~~~~ c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c chardump.cc chardump.cc: In function 'bool dump_char(const char*, bool)': chardump.cc:856:16: warning: 'char* strncat(char*, const char*, size_t)' specified bound 256 equals destination size [-Wstringop-overflow=] 856 | strncat(file_name, ".txt", kPathLen); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ chardump.cc:851:16: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 256 equals destination size [-Wstringop-truncation] 851 | strncpy(file_name, SysEnv.crawl_dir, kPathLen); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ chardump.cc:853:12: warning: 'char* strncat(char*, const char*, size_t)' specified bound 256 equals destination size [-Wstringop-truncation] 853 | strncat(file_name, fname, kPathLen); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ chardump.cc:853:12: warning: 'char* strncat(char*, const char*, size_t)' specified bound 256 equals destination size [-Wstringop-overflow=] c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c cloud.cc c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c command.cc c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c debug.cc debug.cc: In function 'int debug_prompt_for_skill(const char*)': debug.cc:458:16: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 80 equals destination size [-Wstringop-truncation] 458 | strncpy( sk_name, skill_name(i), sizeof( sk_name ) ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ debug.cc: In function 'void debug_change_species()': debug.cc:500:16: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 80 equals destination size [-Wstringop-truncation] 500 | strncpy( sp_name, species_name(i, you.experience_level), sizeof( sp_name ) ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ debug.cc: In function 'void cast_spec_spell_name()': debug.cc:601:16: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 80 equals destination size [-Wstringop-truncation] 601 | strncpy( spname, spell_title(i), sizeof( spname ) ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ debug.cc: In function 'bool debug_add_mutation()': debug.cc:1606:16: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 80 equals destination size [-Wstringop-truncation] 1606 | strncpy( mut_name, mutation_name( i, 1 ), sizeof( mut_name ) ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ debug.cc: In function 'void debug_get_religion()': debug.cc:1675:16: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 80 equals destination size [-Wstringop-truncation] 1675 | strncpy( name, god_name(i), sizeof( name ) ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c delay.cc delay.cc: In function 'void handle_delay()': delay.cc:516:58: warning: '%s' directive output may be truncated writing up to 199 bytes into a region of size 191 [-Wformat-truncation=] 516 | snprintf( info, INFO_SIZE, "You drop %s.", str_pass ); | ^~ ~~~~~~~~ delay.cc:516:29: note: 'snprintf' output between 11 and 210 bytes into a destination of size 200 516 | snprintf( info, INFO_SIZE, "You drop %s.", str_pass ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ delay.cc:342:67: warning: '%s' directive output may be truncated writing up to 199 bytes into a region of size 178 [-Wformat-truncation=] 342 | snprintf( info, INFO_SIZE, "You finish taking off %s.", str_pass ); | ^~ ~~~~~~~~ delay.cc:342:25: note: 'snprintf' output between 24 and 223 bytes into a destination of size 200 342 | snprintf( info, INFO_SIZE, "You finish taking off %s.", str_pass ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ delay.cc:202:67: warning: '%s' directive output may be truncated writing up to 199 bytes into a region of size 178 [-Wformat-truncation=] 202 | snprintf( info, INFO_SIZE, "You finish putting on %s.", str_pass ); | ^~ ~~~~~~~~ delay.cc:202:25: note: 'snprintf' output between 24 and 223 bytes into a destination of size 200 202 | snprintf( info, INFO_SIZE, "You finish putting on %s.", str_pass ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c decks.cc c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c describe.cc describe.cc: In function 'void print_description(const std::string&)': describe.cc:83:43: warning: conversion from 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} to 'unsigned int' changes value from '18446744073709551615' to '4294967295' [-Woverflow] 83 | unsigned int nextLine = std::string::npos; | ~~~~~~~~~~~~~^~~~ c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c direct.cc direct.cc: In function 'void describe_cell(int, int)': direct.cc:742:55: warning: '%s' directive output may be truncated writing up to 199 bytes into a region of size 188 [-Wformat-truncation=] 742 | snprintf( info, INFO_SIZE, "%s is wearing %s.", | ^~ 743 | mons_pronoun( menv[i].type, PRONOUN_CAP ), 744 | str_pass ); | ~~~~~~~~ direct.cc:742:21: note: 'snprintf' output 14 or more bytes (assuming 213) into a destination of size 200 742 | snprintf( info, INFO_SIZE, "%s is wearing %s.", | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 743 | mons_pronoun( menv[i].type, PRONOUN_CAP ), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 744 | str_pass ); | ~~~~~~~~~~ c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c dungeon.cc dungeon.cc: In function 'void build_vaults(int, int)': dungeon.cc:5252:19: warning: array subscript has type 'char' [-Wchar-subscripts] 5252 | romx1[which_room] = 10 + random2(50); | ^~~~~~~~~~ dungeon.cc:5253:19: warning: array subscript has type 'char' [-Wchar-subscripts] 5253 | romy1[which_room] = 10 + random2(40); | ^~~~~~~~~~ dungeon.cc:5254:19: warning: array subscript has type 'char' [-Wchar-subscripts] 5254 | romx2[which_room] = romx1[which_room] + 2 + random2(8); | ^~~~~~~~~~ dungeon.cc:5254:39: warning: array subscript has type 'char' [-Wchar-subscripts] 5254 | romx2[which_room] = romx1[which_room] + 2 + random2(8); | ^~~~~~~~~~ dungeon.cc:5255:19: warning: array subscript has type 'char' [-Wchar-subscripts] 5255 | romy2[which_room] = romy1[which_room] + 2 + random2(8); | ^~~~~~~~~~ dungeon.cc:5255:39: warning: array subscript has type 'char' [-Wchar-subscripts] 5255 | romy2[which_room] = romy1[which_room] + 2 + random2(8); | ^~~~~~~~~~ dungeon.cc:5257:23: warning: array subscript has type 'char' [-Wchar-subscripts] 5257 | while ((romx1[which_room] >= v1x && romx1[which_room] <= v2x | ^~~~~~~~~~ dungeon.cc:5257:51: warning: array subscript has type 'char' [-Wchar-subscripts] 5257 | while ((romx1[which_room] >= v1x && romx1[which_room] <= v2x | ^~~~~~~~~~ dungeon.cc:5258:29: warning: array subscript has type 'char' [-Wchar-subscripts] 5258 | && romy1[which_room] >= v1y && romy1[which_room] <= v2y) | ^~~~~~~~~~ dungeon.cc:5258:57: warning: array subscript has type 'char' [-Wchar-subscripts] 5258 | && romy1[which_room] >= v1y && romy1[which_room] <= v2y) | ^~~~~~~~~~ dungeon.cc:5259:26: warning: array subscript has type 'char' [-Wchar-subscripts] 5259 | || (romx2[which_room] >= v1x && romx2[which_room] <= v2x | ^~~~~~~~~~ dungeon.cc:5259:54: warning: array subscript has type 'char' [-Wchar-subscripts] 5259 | || (romx2[which_room] >= v1x && romx2[which_room] <= v2x | ^~~~~~~~~~ dungeon.cc:5260:29: warning: array subscript has type 'char' [-Wchar-subscripts] 5260 | && romy2[which_room] >= v1y && romy2[which_room] <= v2y)); | ^~~~~~~~~~ dungeon.cc:5260:57: warning: array subscript has type 'char' [-Wchar-subscripts] 5260 | && romy2[which_room] >= v1y && romy2[which_room] <= v2y)); | ^~~~~~~~~~ dungeon.cc:5264:55: warning: array subscript has type 'char' [-Wchar-subscripts] 5264 | join_the_dots(initial_x, initial_y, romx1[which_room], romy1[which_room], | ^~~~~~~~~~ dungeon.cc:5264:74: warning: array subscript has type 'char' [-Wchar-subscripts] 5264 | join_the_dots(initial_x, initial_y, romx1[which_room], romy1[which_room], | ^~~~~~~~~~ dungeon.cc:5269:30: warning: array subscript has type 'char' [-Wchar-subscripts] 5269 | for (cnx = romx1[which_room] - 1; cnx < romx2[which_room] + 1; | ^~~~~~~~~~ dungeon.cc:5269:59: warning: array subscript has type 'char' [-Wchar-subscripts] 5269 | for (cnx = romx1[which_room] - 1; cnx < romx2[which_room] + 1; | ^~~~~~~~~~ dungeon.cc:5272:34: warning: array subscript has type 'char' [-Wchar-subscripts] 5272 | for (cny = romy1[which_room] - 1; cny < romy2[which_room] + 1; | ^~~~~~~~~~ dungeon.cc:5272:63: warning: array subscript has type 'char' [-Wchar-subscripts] 5272 | for (cny = romy1[which_room] - 1; cny < romy2[which_room] + 1; | ^~~~~~~~~~ dungeon.cc:5281:28: warning: array subscript has type 'char' [-Wchar-subscripts] 5281 | replace_area(romx1[which_room], romy1[which_room], romx2[which_room], | ^~~~~~~~~~ dungeon.cc:5281:47: warning: array subscript has type 'char' [-Wchar-subscripts] 5281 | replace_area(romx1[which_room], romy1[which_room], romx2[which_room], | ^~~~~~~~~~ dungeon.cc:5281:66: warning: array subscript has type 'char' [-Wchar-subscripts] 5281 | replace_area(romx1[which_room], romy1[which_room], romx2[which_room], | ^~~~~~~~~~ dungeon.cc:5282:26: warning: array subscript has type 'char' [-Wchar-subscripts] 5282 | romy2[which_room], DNGN_ROCK_WALL, DNGN_FLOOR); | ^~~~~~~~~~ dungeon.cc:5286:35: warning: array subscript has type 'char' [-Wchar-subscripts] 5286 | const int rx1 = romx1[which_room]; | ^~~~~~~~~~ dungeon.cc:5287:35: warning: array subscript has type 'char' [-Wchar-subscripts] 5287 | const int rx2 = romx2[which_room]; | ^~~~~~~~~~ dungeon.cc:5291:35: warning: array subscript has type 'char' [-Wchar-subscripts] 5291 | const int ry1 = romy1[which_room]; | ^~~~~~~~~~ dungeon.cc:5292:35: warning: array subscript has type 'char' [-Wchar-subscripts] 5292 | const int ry2 = romy2[which_room]; | ^~~~~~~~~~ dungeon.cc: In function 'char plan_3()': dungeon.cc:6961:15: warning: array subscript has type 'char' [-Wchar-subscripts] 6961 | romx1[which_room] = 10 + random2(50); | ^~~~~~~~~~ dungeon.cc:6962:15: warning: array subscript has type 'char' [-Wchar-subscripts] 6962 | romy1[which_room] = 10 + random2(40); | ^~~~~~~~~~ dungeon.cc:6963:15: warning: array subscript has type 'char' [-Wchar-subscripts] 6963 | romx2[which_room] = romx1[which_room] + 2 + random2(8); | ^~~~~~~~~~ dungeon.cc:6963:35: warning: array subscript has type 'char' [-Wchar-subscripts] 6963 | romx2[which_room] = romx1[which_room] + 2 + random2(8); | ^~~~~~~~~~ dungeon.cc:6964:15: warning: array subscript has type 'char' [-Wchar-subscripts] 6964 | romy2[which_room] = romy1[which_room] + 2 + random2(8); | ^~~~~~~~~~ dungeon.cc:6964:35: warning: array subscript has type 'char' [-Wchar-subscripts] 6964 | romy2[which_room] = romy1[which_room] + 2 + random2(8); | ^~~~~~~~~~ dungeon.cc:6968:30: warning: array subscript has type 'char' [-Wchar-subscripts] 6968 | for (cnx = romx1[which_room] - 1; cnx < romx2[which_room] + 1; | ^~~~~~~~~~ dungeon.cc:6968:59: warning: array subscript has type 'char' [-Wchar-subscripts] 6968 | for (cnx = romx1[which_room] - 1; cnx < romx2[which_room] + 1; | ^~~~~~~~~~ dungeon.cc:6971:34: warning: array subscript has type 'char' [-Wchar-subscripts] 6971 | for (cny = romy1[which_room] - 1; cny < romy2[which_room] + 1; | ^~~~~~~~~~ dungeon.cc:6971:63: warning: array subscript has type 'char' [-Wchar-subscripts] 6971 | for (cny = romy1[which_room] - 1; cny < romy2[which_room] + 1; | ^~~~~~~~~~ dungeon.cc:6980:28: warning: array subscript has type 'char' [-Wchar-subscripts] 6980 | replace_area(romx1[which_room], romy1[which_room], romx2[which_room], | ^~~~~~~~~~ dungeon.cc:6980:47: warning: array subscript has type 'char' [-Wchar-subscripts] 6980 | replace_area(romx1[which_room], romy1[which_room], romx2[which_room], | ^~~~~~~~~~ dungeon.cc:6980:66: warning: array subscript has type 'char' [-Wchar-subscripts] 6980 | replace_area(romx1[which_room], romy1[which_room], romx2[which_room], | ^~~~~~~~~~ dungeon.cc:6981:26: warning: array subscript has type 'char' [-Wchar-subscripts] 6981 | romy2[which_room], DNGN_ROCK_WALL, DNGN_FLOOR); | ^~~~~~~~~~ dungeon.cc:6985:35: warning: array subscript has type 'char' [-Wchar-subscripts] 6985 | const int rx1 = romx1[which_room]; | ^~~~~~~~~~ dungeon.cc:6986:35: warning: array subscript has type 'char' [-Wchar-subscripts] 6986 | const int rx2 = romx2[which_room]; | ^~~~~~~~~~ dungeon.cc:6990:35: warning: array subscript has type 'char' [-Wchar-subscripts] 6990 | const int ry1 = romy1[which_room]; | ^~~~~~~~~~ dungeon.cc:6991:35: warning: array subscript has type 'char' [-Wchar-subscripts] 6991 | const int ry2 = romy2[which_room]; | ^~~~~~~~~~ dungeon.cc: In function 'void labyrinth_level(int)': dungeon.cc:7293:19: warning: variable 'traps_put2' set but not used [-Wunused-but-set-variable=] 7293 | unsigned char traps_put2 = 0; | ^~~~~~~~~~ c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c effects.cc c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c fight.cc fight.cc: In function 'void you_attack(int, bool)': fight.cc:979:13: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 979 | if (hit && damage_done > 0 | ~~~~^~~~~~~~~~~~~~~~~~ fight.cc:1722:22: warning: variable 'hit' set but not used [-Wunused-but-set-variable=] 1722 | bool hit = true; | ^~~ fight.cc: In function 'bool monsters_fight(int, int)': fight.cc:2913:9: warning: variable 'mmov_x' set but not used [-Wunused-but-set-variable=] 2913 | int mmov_x = 0; | ^~~~~~ c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c files.cc files.cc: In function 'void load(unsigned char, int, bool, char, char)': files.cc:285:19: warning: variable 'foll_targ_1_x' set but not used [-Wunused-but-set-variable=] 285 | unsigned char foll_targ_1_x[8]; | ^~~~~~~~~~~~~ files.cc:286:19: warning: variable 'foll_targ_1_y' set but not used [-Wunused-but-set-variable=] 286 | unsigned char foll_targ_1_y[8]; | ^~~~~~~~~~~~~ files.cc: In function 'void make_filename(char*, const char*, int, int, bool, bool)': files.cc:220:29: warning: array subscript 250 is above array bounds of 'char [250]' [-Warray-bounds=] 220 | finalprefix[kFileNameLen] = '\0'; | ~~~~~~~~~~~~~~~~~~~~~~~~^ files.cc:204:10: note: while referencing 'finalprefix' 204 | char finalprefix[kFileNameLen]; | ^~~~~~~~~~~ In function 'void restore_version(FILE*, char, char)', inlined from 'void restore_game()' at files.cc:1139:20: files.cc:1184:5: warning: 'majorVersion' may be used uninitialized [-Wmaybe-uninitialized] 1184 | if (majorVersion < 4) | ^~ files.cc: In function 'void restore_game()': files.cc:1130:10: note: 'majorVersion' was declared here 1130 | char majorVersion; | ^~~~~~~~~~~~ In function 'void restore_version(FILE*, char, char)', inlined from 'void restore_game()' at files.cc:1139:20: files.cc:1186:17: warning: 'minorVersion' may be used uninitialized [-Wmaybe-uninitialized] 1186 | snprintf( info, INFO_SIZE, "\nSorry, this release cannot read a v%d.%d savefile.\n", | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1187 | majorVersion, minorVersion); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ files.cc: In function 'void restore_game()': files.cc:1131:10: note: 'minorVersion' was declared here 1131 | char minorVersion; | ^~~~~~~~~~~~ files.cc: In function 'void generate_random_demon()': files.cc:1755:67: warning: array subscript 20 is above array bounds of 'unsigned char [20]' [-Warray-bounds=] 1755 | ghost.values[ GVAL_SPELL_1 ] = search_order_conj[i]; | ~~~~~~~~~~~~~~~~~~~^ files.cc:83:15: note: while referencing 'search_order_conj' 83 | unsigned char search_order_conj[] = { | ^~~~~~~~~~~~~~~~~ files.cc:1758:40: warning: array subscript 21 is above array bounds of 'unsigned char [20]' [-Warray-bounds=] 1758 | if (search_order_conj[i] == SPELL_NO_SPELL) | ~~~~~~~~~~~~~~~~~~~^ files.cc:83:15: note: while referencing 'search_order_conj' 83 | unsigned char search_order_conj[] = { | ^~~~~~~~~~~~~~~~~ files.cc:1770:67: warning: array subscript 20 is above array bounds of 'unsigned char [20]' [-Warray-bounds=] 1770 | ghost.values[ GVAL_SPELL_2 ] = search_order_conj[i]; | ~~~~~~~~~~~~~~~~~~~^ files.cc:83:15: note: while referencing 'search_order_conj' 83 | unsigned char search_order_conj[] = { | ^~~~~~~~~~~~~~~~~ files.cc:1784:68: warning: array subscript 20 is above array bounds of 'unsigned char [14]' [-Warray-bounds=] 1784 | ghost.values[ GVAL_SPELL_3 ] = search_order_third[i]; | ~~~~~~~~~~~~~~~~~~~~^ files.cc:111:15: note: while referencing 'search_order_third' 111 | unsigned char search_order_third[] = { | ^~~~~~~~~~~~~~~~~~ files.cc:1787:41: warning: array subscript 21 is above array bounds of 'unsigned char [14]' [-Warray-bounds=] 1787 | if (search_order_third[i] == SPELL_NO_SPELL) | ~~~~~~~~~~~~~~~~~~~~^ files.cc:111:15: note: while referencing 'search_order_third' 111 | unsigned char search_order_third[] = { | ^~~~~~~~~~~~~~~~~~ files.cc:1799:67: warning: array subscript 20 is above array bounds of 'unsigned char [9]' [-Warray-bounds=] 1799 | ghost.values[ GVAL_SPELL_4 ] = search_order_misc[i]; | ~~~~~~~~~~~~~~~~~~~^ files.cc:135:15: note: while referencing 'search_order_misc' 135 | unsigned char search_order_misc[] = { | ^~~~~~~~~~~~~~~~~ files.cc:1802:40: warning: array subscript 21 is above array bounds of 'unsigned char [9]' [-Warray-bounds=] 1802 | if (search_order_misc[i] == SPELL_NO_SPELL) | ~~~~~~~~~~~~~~~~~~~^ files.cc:135:15: note: while referencing 'search_order_misc' 135 | unsigned char search_order_misc[] = { | ^~~~~~~~~~~~~~~~~ files.cc:1814:67: warning: array subscript 20 is above array bounds of 'unsigned char [9]' [-Warray-bounds=] 1814 | ghost.values[ GVAL_SPELL_5 ] = search_order_misc[i]; | ~~~~~~~~~~~~~~~~~~~^ files.cc:135:15: note: while referencing 'search_order_misc' 135 | unsigned char search_order_misc[] = { | ^~~~~~~~~~~~~~~~~ files.cc:1817:40: warning: array subscript 21 is above array bounds of 'unsigned char [9]' [-Warray-bounds=] 1817 | if (search_order_misc[i] == SPELL_NO_SPELL) | ~~~~~~~~~~~~~~~~~~~^ files.cc:135:15: note: while referencing 'search_order_misc' 135 | unsigned char search_order_misc[] = { | ^~~~~~~~~~~~~~~~~ files.cc: In function 'void load(unsigned char, int, bool, char, char)': files.cc:478:64: warning: '%s' directive output may be truncated writing up to 254 bytes into a region of size 179 [-Wformat-truncation=] 478 | snprintf( info, INFO_SIZE, "\nIncomplete read of \"%s\" - aborting.\n", cha_fil); | ^~ ~~~~~~~ files.cc:478:21: note: 'snprintf' output between 36 and 290 bytes into a destination of size 200 478 | snprintf( info, INFO_SIZE, "\nIncomplete read of \"%s\" - aborting.\n", cha_fil); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'void restore_level_version(FILE*, char, char)', inlined from 'void load(unsigned char, int, bool, char, char)' at files.cc:473:30: files.cc:1259:5: warning: 'majorVersion' may be used uninitialized [-Wmaybe-uninitialized] 1259 | if (majorVersion < 4) | ^~ files.cc: In function 'void load(unsigned char, int, bool, char, char)': files.cc:464:14: note: 'majorVersion' was declared here 464 | char majorVersion; | ^~~~~~~~~~~~ In function 'void restore_level_version(FILE*, char, char)', inlined from 'void load(unsigned char, int, bool, char, char)' at files.cc:473:30: files.cc:1261:17: warning: 'minorVersion' may be used uninitialized [-Wmaybe-uninitialized] 1261 | snprintf( info, INFO_SIZE, "\nSorry, this release cannot read a v%d.%d level file.\n", | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1262 | majorVersion, minorVersion); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ files.cc: In function 'void load(unsigned char, int, bool, char, char)': files.cc:465:14: note: 'minorVersion' was declared here 465 | char minorVersion; | ^~~~~~~~~~~~ c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c food.cc food.cc: In function 'bool butchery()': food.cc:311:9: warning: variable 'last_item' set but not used [-Wunused-but-set-variable=] 311 | int last_item = NON_ITEM; | ^~~~~~~~~ food.cc: In function 'void eat_food()': food.cc:668:43: warning: '%s' directive output may be truncated writing up to 199 bytes into a region of size between 189 and 196 [-Wformat-truncation=] 668 | snprintf( info, INFO_SIZE, "Eat %s%s?", (mitm[o].quantity > 1) ? "one of " : "", | ^~ 669 | str_pass ); | ~~~~~~~~ In function 'bool eat_from_floor()', inlined from 'void eat_food()' at food.cc:513:27: food.cc:668:17: note: 'snprintf' output between 6 and 212 bytes into a destination of size 200 668 | snprintf( info, INFO_SIZE, "Eat %s%s?", (mitm[o].quantity > 1) ? "one of " : "", | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 669 | str_pass ); | ~~~~~~~~~~ c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c hiscores.cc hiscores.cc: In function 'int hiscores_format_single_long(char*, scorefile_entry&, bool)': hiscores.cc:1057:24: warning: 'char* strncat(char*, const char*, size_t)' specified bound 80 equals destination size [-Wstringop-overflow=] 1057 | strncat( username, "'s", sizeof(username) ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hiscores.cc: In function 'void hiscores_format_single(char*, scorefile_entry&)': hiscores.cc:402:55: warning: '%s' directive output may be truncated writing up to 199 bytes into a region of size between 90 and 99 [-Wformat-truncation=] 402 | snprintf( scratch, sizeof(scratch), " %s%s%s", | ^~ hiscores.cc:402:21: note: 'snprintf' output between 2 and 210 bytes into a destination of size 100 402 | snprintf( scratch, sizeof(scratch), " %s%s%s", | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 403 | (len + 3 * (need_by) < 30) ? "killed" : "", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 404 | (need_by) ? "by " : "", | ~~~~~~~~~~~~~~~~~~~~~~~ 405 | se.auxkilldata ); | ~~~~~~~~~~~~~~~~ hiscores.cc:360:58: warning: '%s' directive output may be truncated writing up to 199 bytes into a region of size 88 [-Wformat-truncation=] 360 | snprintf( scratch, sizeof(scratch), " triggered a%s trap", | ^~ hiscores.cc:360:17: note: 'snprintf' output between 18 and 217 bytes into a destination of size 100 360 | snprintf( scratch, sizeof(scratch), " triggered a%s trap", | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 361 | (se.auxkilldata[0] != '\0') ? se.auxkilldata : "" ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hiscores.cc:301:65: warning: '%s' directive output may be truncated writing up to 199 bytes into a region of size between 76 and 87 [-Wformat-truncation=] 301 | snprintf( scratch, sizeof(scratch), " engulfed by %s%s", | ^~ hiscores.cc:301:21: note: 'snprintf' output between 14 and 224 bytes into a destination of size 100 301 | snprintf( scratch, sizeof(scratch), " engulfed by %s%s", | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 302 | (len < 15) ? "a cloud of " : "", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 303 | se.auxkilldata ); | ~~~~~~~~~~~~~~~~ hiscores.cc: In function 'int hiscores_format_single_long(char*, scorefile_entry&, bool)': hiscores.cc:558:16: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-truncation] 558 | strncpy( scratch, skill_title( se.best_skill, se.best_skill_lvl, | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 559 | se.race, se.str, se.dex, se.god ), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 560 | INFO_SIZE ); | ~~~~~~~~~~~ hiscores.cc:791:59: warning: '%s' directive output may be truncated writing up to 199 bytes into a region of size between 190 and 193 [-Wformat-truncation=] 791 | snprintf( scratch, sizeof(scratch), "Killed %s%s", | ^~ hiscores.cc:791:21: note: 'snprintf' output between 8 and 210 bytes into a destination of size 200 791 | snprintf( scratch, sizeof(scratch), "Killed %s%s", | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 792 | (strncmp( se.auxkilldata, "by ", 3 ) != 0) ? "by " : "", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 793 | se.auxkilldata ); | ~~~~~~~~~~~~~~~~ hiscores.cc:744:68: warning: '%s' directive output may be truncated writing up to 199 bytes into a region of size 178 [-Wformat-truncation=] 744 | snprintf( scratch, sizeof(scratch), "Killed by triggering a%s trap", | ^~ hiscores.cc:744:17: note: 'snprintf' output between 28 and 227 bytes into a destination of size 200 744 | snprintf( scratch, sizeof(scratch), "Killed by triggering a%s trap", | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 745 | (se.auxkilldata[0] != '\0') ? se.auxkilldata : "" ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hiscores.cc:697:57: warning: '%s' directive output may be truncated writing up to 199 bytes into a region of size 193 [-Wformat-truncation=] 697 | snprintf( scratch, sizeof(scratch), "Killed %s", se.auxkilldata ); | ^~ hiscores.cc:697:21: note: 'snprintf' output between 8 and 207 bytes into a destination of size 200 697 | snprintf( scratch, sizeof(scratch), "Killed %s", se.auxkilldata ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hiscores.cc:679:73: warning: '%s' directive output may be truncated writing up to 199 bytes into a region of size 177 [-Wformat-truncation=] 679 | snprintf( scratch, sizeof(scratch), "Engulfed by a cloud of %s", | ^~ hiscores.cc:679:21: note: 'snprintf' output between 24 and 223 bytes into a destination of size 200 679 | snprintf( scratch, sizeof(scratch), "Engulfed by a cloud of %s", | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 680 | se.auxkilldata ); | ~~~~~~~~~~~~~~~~ hiscores.cc:906:60: warning: '%s' directive output may be truncated writing up to 199 bytes into a region of size 187 [-Wformat-truncation=] 906 | snprintf(scratch, INFO_SIZE, "... wielding %s", se.auxkilldata); | ^~ hiscores.cc:906:25: note: 'snprintf' output between 14 and 213 bytes into a destination of size 200 906 | snprintf(scratch, INFO_SIZE, "... wielding %s", se.auxkilldata); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hiscores.cc:1056:24: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 80 equals destination size [-Wstringop-truncation] 1056 | strncpy( username, pw_entry->pw_name, sizeof(username) ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c initfile.cc initfile.cc: In function 'void read_init_file()': initfile.cc:339:18: warning: variable 'line' set but not used [-Wunused-but-set-variable=] 339 | unsigned int line = 0; | ^~~~ initfile.cc:353:16: warning: 'char* strncat(char*, const char*, size_t)' specified bound 256 equals destination size [-Wstringop-overflow=] 353 | strncat(name_buff, "init.txt", kPathLen); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ initfile.cc:367:16: warning: 'char* strncat(char*, const char*, size_t)' specified bound 256 equals destination size [-Wstringop-overflow=] 367 | strncat(name_buff, "/.crawlrc", kPathLen); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c insult.cc insult.cc: In function 'void demon_taunt(monsters*)': insult.cc:87:48: warning: array subscript has type 'char' [-Wchar-subscripts] 87 | const char *voice = sound_list[ mons_shouts(mons->type) ]; | ~~~~~~~~~~~^~~~~~~~~~~~ c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c invent.cc c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c it_use2.cc c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c it_use3.cc c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c item_use.cc item_use.cc: In function 'void shoot_thing()': item_use.cc:1105:41: warning: '%s' directive output may be truncated writing up to 199 bytes into a region of size 192 [-Wformat-truncation=] 1105 | snprintf( info, INFO_SIZE, "Firing: %s", str_pass ); | ^~ ~~~~~~~~ item_use.cc:1105:13: note: 'snprintf' output between 9 and 208 bytes into a destination of size 200 1105 | snprintf( info, INFO_SIZE, "Firing: %s", str_pass ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c itemname.cc itemname.cc: In function 'void save_id(char (*)[50])': itemname.cc:2091:20: warning: array subscript has type 'char' [-Wchar-subscripts] 2091 | identy[x][jx] = id[x][jx]; | ^ itemname.cc:2091:23: warning: array subscript has type 'char' [-Wchar-subscripts] 2091 | identy[x][jx] = id[x][jx]; | ^~ itemname.cc:2091:32: warning: array subscript has type 'char' [-Wchar-subscripts] 2091 | identy[x][jx] = id[x][jx]; | ^ itemname.cc:2091:35: warning: array subscript has type 'char' [-Wchar-subscripts] 2091 | identy[x][jx] = id[x][jx]; | ^~ itemname.cc: In function 'void clear_ids()': itemname.cc:2105:16: warning: array subscript has type 'char' [-Wchar-subscripts] 2105 | id[i][j] = ID_UNKNOWN_TYPE; | ^ itemname.cc:2105:19: warning: array subscript has type 'char' [-Wchar-subscripts] 2105 | id[i][j] = ID_UNKNOWN_TYPE; | ^ itemname.cc: In function 'void set_ident_type(char, char, char, bool)': itemname.cc:2125:28: warning: array subscript has type 'char' [-Wchar-subscripts] 2125 | id[ IDTYPE_WANDS ][ty] = setting; | ^~ itemname.cc:2129:30: warning: array subscript has type 'char' [-Wchar-subscripts] 2129 | id[ IDTYPE_SCROLLS ][ty] = setting; | ^~ itemname.cc:2133:32: warning: array subscript has type 'char' [-Wchar-subscripts] 2133 | id[ IDTYPE_JEWELLERY ][ty] = setting; | ^~ itemname.cc:2137:30: warning: array subscript has type 'char' [-Wchar-subscripts] 2137 | id[ IDTYPE_POTIONS ][ty] = setting; | ^~ itemname.cc: In function 'char get_ident_type(char, char)': itemname.cc:2150:35: warning: array subscript has type 'char' [-Wchar-subscripts] 2150 | return id[ IDTYPE_WANDS ][ty]; | ^~ itemname.cc:2153:37: warning: array subscript has type 'char' [-Wchar-subscripts] 2153 | return id[ IDTYPE_SCROLLS ][ty]; | ^~ itemname.cc:2156:39: warning: array subscript has type 'char' [-Wchar-subscripts] 2156 | return id[ IDTYPE_JEWELLERY ][ty]; | ^~ itemname.cc:2159:37: warning: array subscript has type 'char' [-Wchar-subscripts] 2159 | return id[ IDTYPE_POTIONS ][ty]; | ^~ itemname.cc: In function 'void make_name(unsigned char, unsigned char, unsigned char, char, char*)': itemname.cc:2941:64: warning: array subscript has type 'char' [-Wchar-subscripts] 2941 | if (nexty == 1 || (i > 0 && !is_random_name_vowel(name[i]))) | ^ itemname.cc:2943:18: warning: array subscript has type 'char' [-Wchar-subscripts] 2943 | name[i] = retvow(numb[j]); | ^ itemname.cc:2944:50: warning: array subscript has type 'char' [-Wchar-subscripts] 2944 | if ((i == 0 || i == len - 1) && name[i] == 32) | ^ itemname.cc:2952:72: warning: array subscript has type 'char' [-Wchar-subscripts] 2952 | if (numb[i / 2] <= 1 && i > 3 && is_random_name_vowel(name[i])) | ^ itemname.cc:2955:22: warning: array subscript has type 'char' [-Wchar-subscripts] 2955 | name[i] = numb[j]; | ^ itemname.cc:2961:54: warning: array subscript has type 'char' [-Wchar-subscripts] 2961 | if ((nexty == 0 && is_random_name_vowel(name[i])) | ^ itemname.cc:2962:58: warning: array subscript has type 'char' [-Wchar-subscripts] 2962 | || (nexty == 1 && !is_random_name_vowel(name[i]))) | ^ itemname.cc:2971:40: warning: array subscript has type 'char' [-Wchar-subscripts] 2971 | if (!is_random_name_vowel(name[i])) | ^ itemname.cc:2984:31: warning: array subscript has type 'char' [-Wchar-subscripts] 2984 | if (i > 3 && name[i] == 0 && name[i + 1] == 0) | ^ itemname.cc:2986:22: warning: array subscript has type 'char' [-Wchar-subscripts] 2986 | name[i] = 0; | ^ itemname.cc:2991:22: warning: array subscript has type 'char' [-Wchar-subscripts] 2991 | if (name[i] != 32 && name[i] < 30) | ^ itemname.cc:2991:39: warning: array subscript has type 'char' [-Wchar-subscripts] 2991 | if (name[i] != 32 && name[i] < 30) | ^ itemname.cc:2992:22: warning: array subscript has type 'char' [-Wchar-subscripts] 2992 | name[i] += 65; | ^ itemname.cc:2993:22: warning: array subscript has type 'char' [-Wchar-subscripts] 2993 | if (name[i] > 96) | ^ itemname.cc:2994:22: warning: array subscript has type 'char' [-Wchar-subscripts] 2994 | name[i] -= 32; | ^ itemname.cc:3001:32: warning: array subscript has type 'char' [-Wchar-subscripts] 3001 | if (i != 0 && name[i] >= 65 && name[i] < 97) | ^ itemname.cc:3001:49: warning: array subscript has type 'char' [-Wchar-subscripts] 3001 | if (i != 0 && name[i] >= 65 && name[i] < 97) | ^ itemname.cc:3004:26: warning: array subscript has type 'char' [-Wchar-subscripts] 3004 | name[i] += 32; | ^ itemname.cc:3007:22: warning: array subscript has type 'char' [-Wchar-subscripts] 3007 | if (name[i] > 97) | ^ itemname.cc:3010:26: warning: array subscript has type 'char' [-Wchar-subscripts] 3010 | name[i] -= 32; | ^ itemname.cc:3013:22: warning: array subscript has type 'char' [-Wchar-subscripts] 3013 | if (name[i] < 30) | ^ itemname.cc:3015:37: warning: array subscript has type 'char' [-Wchar-subscripts] 3015 | if (i == 0 || (name[i] != 32 && name[i - 1] == 32)) | ^ itemname.cc:3016:26: warning: array subscript has type 'char' [-Wchar-subscripts] 3016 | name[i] += 65; | ^ itemname.cc:3018:26: warning: array subscript has type 'char' [-Wchar-subscripts] 3018 | name[i] += 97; | ^ itemname.cc:3026:22: warning: array subscript has type 'char' [-Wchar-subscripts] 3026 | if (name[i] != 32 && name[i] < 30) | ^ itemname.cc:3026:39: warning: array subscript has type 'char' [-Wchar-subscripts] 3026 | if (name[i] != 32 && name[i] < 30) | ^ itemname.cc:3027:22: warning: array subscript has type 'char' [-Wchar-subscripts] 3027 | name[i] += 97; | ^ itemname.cc:3032:14: warning: array subscript has type 'char' [-Wchar-subscripts] 3032 | name[i] += 65; | ^ itemname.cc:3036:22: warning: array subscript has type 'char' [-Wchar-subscripts] 3036 | if (name[i] != 32 && name[i] < 30) | ^ itemname.cc:3036:39: warning: array subscript has type 'char' [-Wchar-subscripts] 3036 | if (name[i] != 32 && name[i] < 30) | ^ itemname.cc:3037:22: warning: array subscript has type 'char' [-Wchar-subscripts] 3037 | name[i] += 97; //97; | ^ itemname.cc:2878:10: warning: variable 'igo' set but not used [-Wunused-but-set-variable=] 2878 | char igo = 0; | ^~~ itemname.cc:2880:9: warning: variable 'x' set but not used [-Wunused-but-set-variable=] 2880 | int x = 0; | ^ In function 'char item_name_2(const item_def&, char*, bool)', inlined from 'char item_name(const item_def&, char, char*, bool)' at itemname.cc:386:16: itemname.cc:1951:16: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1951 | strncat( buff, (item_is_rod( item ) ? "rod" : "staff"), ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:1951:16: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] itemname.cc:1033:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1033 | strncat(buff,(secondary == 0) ? "" : // hope this works {dlb} | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1034 | (secondary == 1) ? "jeweled" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1035 | (secondary == 2) ? "curved" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1036 | (secondary == 3) ? "long" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1037 | (secondary == 4) ? "short" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1038 | (secondary == 5) ? "twisted" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1039 | (secondary == 6) ? "crooked" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1040 | (secondary == 7) ? "forked" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1041 | (secondary == 8) ? "shiny" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1042 | (secondary == 9) ? "blackened" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1043 | (secondary == 10) ? "tapered" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1044 | (secondary == 11) ? "glowing" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1045 | (secondary == 12) ? "worn" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1046 | (secondary == 13) ? "encrusted" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1047 | (secondary == 14) ? "runed" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1048 | (secondary == 15) ? "sharpened" : "buggily", ITEMNAME_SIZE); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:1033:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] itemname.cc:1033:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] itemname.cc:1033:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] itemname.cc:1033:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] itemname.cc:1033:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] itemname.cc:1033:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] itemname.cc:1033:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] itemname.cc:1033:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] itemname.cc:1033:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] itemname.cc:1033:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] itemname.cc:1033:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] itemname.cc:1033:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] itemname.cc:1033:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] itemname.cc:1033:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] itemname.cc:1033:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] itemname.cc:1951:16: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1951 | strncat( buff, (item_is_rod( item ) ? "rod" : "staff"), ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:1951:16: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] itemname.cc:1853:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-truncation] 1853 | strncat(buff, skill_name(it_plus), ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:1573:24: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-truncation] 1573 | strncat(buff, randart_ring_name(item), ITEMNAME_SIZE); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:1479:24: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-truncation] 1479 | strncat(buff, randart_ring_name(item), ITEMNAME_SIZE); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:1330:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-truncation] 1330 | strncat(buff, randart_ring_name(item), ITEMNAME_SIZE); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:890:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-truncation] 890 | strncat(buff, randart_armour_name(item), ITEMNAME_SIZE); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:626:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-truncation] 626 | strncat( buff, randart_name(item), ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:607:24: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 607 | strncat( buff, tmp_quant , ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:617:28: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 617 | strncat( buff, tmp_quant , ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:626:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 626 | strncat( buff, randart_name(item), ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:634:24: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 634 | strncat(buff, | ~~~~~~~^~~~~~ 635 | (item.special == SPWPN_SINGING_SWORD) ? "Singing Sword" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 636 | (item.special == SPWPN_WRATH_OF_TROG) ? "Wrath of Trog" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 637 | (item.special == SPWPN_SCYTHE_OF_CURSES) ? "Scythe of Curses" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 638 | (item.special == SPWPN_MACE_OF_VARIABILITY) ? "Mace of Variability" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 639 | (item.special == SPWPN_GLAIVE_OF_PRUNE) ? "Glaive of Prune" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 640 | (item.special == SPWPN_SCEPTRE_OF_TORMENT) ? "Sceptre of Torment" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 641 | (item.special == SPWPN_SWORD_OF_ZONGULDROK) ? "Sword of Zonguldrok" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 642 | (item.special == SPWPN_SWORD_OF_CEREBOV) ? "Sword of Cerebov" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 643 | (item.special == SPWPN_STAFF_OF_DISPATER) ? "Staff of Dispater" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 644 | (item.special == SPWPN_SCEPTRE_OF_ASMODEUS) ? "Sceptre of Asmodeus" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 645 | (item.special == SPWPN_SWORD_OF_POWER) ? "Sword of Power" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 646 | (item.special == SPWPN_KNIFE_OF_ACCURACY) ? "Knife of Accuracy" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 647 | (item.special == SPWPN_STAFF_OF_OLGREB) ? "Staff of Olgreb" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 648 | (item.special == SPWPN_VAMPIRES_TOOTH) ? "Vampire's Tooth" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 649 | (item.special == SPWPN_STAFF_OF_WUCAD_MU) ? "Staff of Wucad Mu" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 650 | : "Brodale's Buggy Bola", | ~~~~~~~~~~~~~~~~~~~~~~~~~ 651 | ITEMNAME_SIZE ); | ~~~~~~~~~~~~~~~ itemname.cc:655:24: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 655 | strncat(buff, | ~~~~~~~^~~~~~ 656 | (item.special == SPWPN_SINGING_SWORD) ? "golden long sword" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 657 | (item.special == SPWPN_WRATH_OF_TROG) ? "bloodstained battleaxe" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 658 | (item.special == SPWPN_SCYTHE_OF_CURSES) ? "warped scythe" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 659 | (item.special == SPWPN_MACE_OF_VARIABILITY) ? "shimmering mace" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 660 | (item.special == SPWPN_GLAIVE_OF_PRUNE) ? "purple glaive" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 661 | (item.special == SPWPN_SCEPTRE_OF_TORMENT) ? "jeweled golden mace" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 662 | (item.special == SPWPN_SWORD_OF_ZONGULDROK) ? "bone long sword" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 663 | (item.special == SPWPN_SWORD_OF_CEREBOV) ? "great serpentine sword" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 664 | (item.special == SPWPN_STAFF_OF_DISPATER) ? "golden staff" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 665 | (item.special == SPWPN_SCEPTRE_OF_ASMODEUS) ? "ruby sceptre" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 666 | (item.special == SPWPN_SWORD_OF_POWER) ? "chunky great sword" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 667 | (item.special == SPWPN_KNIFE_OF_ACCURACY) ? "thin dagger" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 668 | (item.special == SPWPN_STAFF_OF_OLGREB) ? "green glowing staff" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 669 | (item.special == SPWPN_VAMPIRES_TOOTH) ? "ivory dagger" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 670 | (item.special == SPWPN_STAFF_OF_WUCAD_MU) ? "quarterstaff" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 671 | : "buggy bola", | ~~~~~~~~~~~~~~~ 672 | ITEMNAME_SIZE ); | ~~~~~~~~~~~~~~~ itemname.cc:698:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 698 | strncat( buff, (terse) ? "orc " : "orcish ", ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:701:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 701 | strncat( buff, (terse) ? "elf " : "elven ", ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:704:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 704 | strncat( buff, (terse) ? "dwarf " : "dwarven ", ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:717:16: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 717 | strncat( buff, tmp_buff, ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:717:16: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] itemname.cc:726:24: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 726 | strncat(buff, (terse) ? " (flame)" : " of flaming", ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:729:24: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 729 | strncat(buff, (terse) ? " (freeze)" : " of freezing", ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:732:24: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 732 | strncat(buff, (terse) ? " (holy)" : " of holy wrath", ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:735:24: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 735 | strncat(buff, (terse) ? " (elec)" : " of electrocution", ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:738:24: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 738 | strncat(buff, (terse) ? " (slay orc)" : " of orc slaying", ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:741:24: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 741 | strncat(buff, (terse) ? " (venom)" : " of venom", ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:744:24: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 744 | strncat(buff, (terse) ? " (protect)" : " of protection", ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:747:24: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 747 | strncat(buff, (terse) ? " (drain)" : " of draining", ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:750:24: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 750 | strncat(buff, (terse) ? " (speed)" : " of speed", ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:756:28: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 756 | strncat(buff, (terse) ? " (crush)" : " of crushing", ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:759:28: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 759 | strncat(buff, (terse) ? " (slice)" : " of slicing", ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:762:28: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 762 | strncat(buff, (terse) ? " (pierce)" : " of piercing", ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:765:28: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 765 | strncat(buff, (terse) ? " (chop)" : " of chopping", ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:771:24: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 771 | strncat(buff, (terse) ? " (flame)" : " of flame", ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:775:24: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 775 | strncat(buff, (terse) ? " (frost)" : " of frost", ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:784:24: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 784 | strncat(buff, (terse) ? " (disrupt)" : " of disruption", ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:787:24: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 787 | strncat(buff, (terse) ? " (pain)" : " of pain", ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:790:24: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 790 | strncat(buff, (terse) ? " (distort)" : " of distortion", ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:794:24: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 794 | strncat(buff, (terse) ? " (reach)" : " of reaching", ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:810:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 810 | strncat( buff, (terse) ? "poison " : "poisoned ", ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:820:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 820 | strncat(buff, tmp_quant, ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:828:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 828 | strncat(buff, | ~~~~~~~^~~~~~ 829 | (dwpn == ISFLAG_ORCISH) ? ((terse) ? "orc " : "orcish ") : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 830 | (dwpn == ISFLAG_ELVEN) ? ((terse) ? "elf " : "elven ") : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 831 | (dwpn == ISFLAG_DWARVEN) ? ((terse) ? "dwarf " : "dwarven ") | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 832 | : "buggy ", | ~~~~~~~~~~~ 833 | ITEMNAME_SIZE); | ~~~~~~~~~~~~~~ itemname.cc:836:16: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 836 | strncat(buff, (item_typ == MI_STONE) ? "stone" : | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 837 | (item_typ == MI_ARROW) ? "arrow" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 838 | (item_typ == MI_BOLT) ? "bolt" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 839 | (item_typ == MI_DART) ? "dart" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 840 | (item_typ == MI_NEEDLE) ? "needle" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 841 | (item_typ == MI_EGGPLANT) ? "eggplant" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 842 | (item_typ == MI_LARGE_ROCK) ? "large rock" : "", ITEMNAME_SIZE); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:850:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 850 | strncat( buff, | ~~~~~~~^~~~~~~ 851 | (brand == SPMSL_FLAME) ? ((terse) ? " (flame)" : " of flame") : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 852 | (brand == SPMSL_ICE) ? ((terse) ? " (ice)" : " of ice") : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 853 | (brand == SPMSL_NORMAL) ? "" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 854 | (brand == SPMSL_POISONED) ? "" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 855 | (brand == SPMSL_POISONED_II) ? "" : " (buggy)", ITEMNAME_SIZE ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:878:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 878 | strncat(buff, tmp_quant, ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:890:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 890 | strncat(buff, randart_armour_name(item), ITEMNAME_SIZE); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:928:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 928 | strncat(buff, (terse) ? "elf " :"elven ", ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:931:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 931 | strncat(buff, (terse) ? "dwarf " : "dwarven ", ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:934:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 934 | strncat(buff, (terse) ? "orc " : "orcish ", ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:939:16: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 939 | strncat( buff, tmp_buff, ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:949:24: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 949 | strncat(buff, (sparm == SPARM_RUNNING) ? "running" : | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 950 | (sparm == SPARM_FIRE_RESISTANCE) ? "fire resistance" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 951 | (sparm == SPARM_COLD_RESISTANCE) ? "cold resistance" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 952 | (sparm == SPARM_POISON_RESISTANCE) ? "poison resistance" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 953 | (sparm == SPARM_SEE_INVISIBLE) ? "see invisible" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 954 | (sparm == SPARM_DARKNESS) ? "darkness" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 955 | (sparm == SPARM_STRENGTH) ? "strength" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 956 | (sparm == SPARM_DEXTERITY) ? "dexterity" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 957 | (sparm == SPARM_INTELLIGENCE) ? "intelligence" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 958 | (sparm == SPARM_PONDEROUSNESS) ? "ponderousness" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 959 | (sparm == SPARM_LEVITATION) ? "levitation" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 960 | (sparm == SPARM_MAGIC_RESISTANCE) ? "magic resistance" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 961 | (sparm == SPARM_PROTECTION) ? "protection" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 962 | (sparm == SPARM_STEALTH) ? "stealth" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 963 | (sparm == SPARM_RESISTANCE) ? "resistance" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 964 | (sparm == SPARM_POSITIVE_ENERGY) ? "positive energy" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 965 | (sparm == SPARM_ARCHMAGI) ? "the Archmagi" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 966 | (sparm == SPARM_PRESERVATION) ? "preservation" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 967 | : "bugginess", | ~~~~~~~~~~~~~~ 968 | ITEMNAME_SIZE); | ~~~~~~~~~~~~~~ itemname.cc:972:24: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 972 | strncat(buff, (sparm == SPARM_RUNNING) ? " (run)" : | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 973 | (sparm == SPARM_FIRE_RESISTANCE) ? " (R-fire)" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 974 | (sparm == SPARM_COLD_RESISTANCE) ? " (R-cold)" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 975 | (sparm == SPARM_POISON_RESISTANCE) ? " (R-poison)" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 976 | (sparm == SPARM_SEE_INVISIBLE) ? " (see invis)" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 977 | (sparm == SPARM_DARKNESS) ? " (darkness)" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 978 | (sparm == SPARM_STRENGTH) ? " (str)" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 979 | (sparm == SPARM_DEXTERITY) ? " (dex)" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 980 | (sparm == SPARM_INTELLIGENCE) ? " (int)" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 981 | (sparm == SPARM_PONDEROUSNESS) ? " (ponderous)" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 982 | (sparm == SPARM_LEVITATION) ? " (levitate)" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 983 | (sparm == SPARM_MAGIC_RESISTANCE) ? " (R-magic)" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 984 | (sparm == SPARM_PROTECTION) ? " (protect)" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 985 | (sparm == SPARM_STEALTH) ? " (stealth)" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 986 | (sparm == SPARM_RESISTANCE) ? " (resist)" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 987 | (sparm == SPARM_POSITIVE_ENERGY) ? " (R-neg)" : // ha ha | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 988 | (sparm == SPARM_ARCHMAGI) ? " (Archmagi)" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 989 | (sparm == SPARM_PRESERVATION) ? " (preserve)" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 990 | : " (buggy)", | ~~~~~~~~~~~~~ 991 | ITEMNAME_SIZE); | ~~~~~~~~~~~~~~ itemname.cc:1005:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1005 | strncat(buff, (item_typ == WAND_FLAME) ? "flame" : | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1006 | (item_typ == WAND_FROST) ? "frost" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1007 | (item_typ == WAND_SLOWING) ? "slowing" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1008 | (item_typ == WAND_HASTING) ? "hasting" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1009 | (item_typ == WAND_MAGIC_DARTS) ? "magic darts" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1010 | (item_typ == WAND_HEALING) ? "healing" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1011 | (item_typ == WAND_PARALYSIS) ? "paralysis" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1012 | (item_typ == WAND_FIRE) ? "fire" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1013 | (item_typ == WAND_COLD) ? "cold" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1014 | (item_typ == WAND_CONFUSION) ? "confusion" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1015 | (item_typ == WAND_INVISIBILITY) ? "invisibility" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1016 | (item_typ == WAND_DIGGING) ? "digging" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1017 | (item_typ == WAND_FIREBALL) ? "fireball" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1018 | (item_typ == WAND_TELEPORTATION) ? "teleportation" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1019 | (item_typ == WAND_LIGHTNING) ? "lightning" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1020 | (item_typ == WAND_POLYMORPH_OTHER) ? "polymorph other" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1021 | (item_typ == WAND_ENSLAVEMENT) ? "enslavement" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1022 | (item_typ == WAND_DRAINING) ? "draining" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1023 | (item_typ == WAND_RANDOM_EFFECTS) ? "random effects" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1024 | (item_typ == WAND_DISINTEGRATION) ? "disintegration" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1025 | : "bugginess", | ~~~~~~~~~~~~~~ 1026 | ITEMNAME_SIZE ); | ~~~~~~~~~~~~~~~ itemname.cc:1053:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1053 | strncat(buff, (primary == 0) ? "iron" : | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1054 | (primary == 1) ? "brass" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 1055 | (primary == 2) ? "bone" : | ~~~~~~~~~~~~~~~~~~~~~~~~~ 1056 | (primary == 3) ? "wooden" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1057 | (primary == 4) ? "copper" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1058 | (primary == 5) ? "gold" : | ~~~~~~~~~~~~~~~~~~~~~~~~~ 1059 | (primary == 6) ? "silver" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1060 | (primary == 7) ? "bronze" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1061 | (primary == 8) ? "ivory" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 1062 | (primary == 9) ? "glass" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 1063 | (primary == 10) ? "lead" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 1064 | (primary == 11) ? "plastic" : "buggy", ITEMNAME_SIZE); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:1078:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1078 | strncat(buff, tmp_quant, ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:1092:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1092 | strncat(buff, (it_quant == 1) ? " " : "s ", ITEMNAME_SIZE); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:1094:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1094 | strncat(buff, (item_typ == POT_HEALING) ? "healing" : | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1095 | (item_typ == POT_HEAL_WOUNDS) ? "heal wounds" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1096 | (item_typ == POT_SPEED) ? "speed" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1097 | (item_typ == POT_MIGHT) ? "might" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1098 | (item_typ == POT_GAIN_STRENGTH) ? "gain strength" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1099 | (item_typ == POT_GAIN_DEXTERITY) ? "gain dexterity" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1100 | (item_typ == POT_GAIN_INTELLIGENCE) ? "gain intelligence" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1101 | (item_typ == POT_LEVITATION) ? "levitation" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1102 | (item_typ == POT_POISON) ? "poison" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1103 | (item_typ == POT_SLOWING) ? "slowing" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1104 | (item_typ == POT_PARALYSIS) ? "paralysis" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1105 | (item_typ == POT_CONFUSION) ? "confusion" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1106 | (item_typ == POT_INVISIBILITY) ? "invisibility" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1107 | (item_typ == POT_PORRIDGE) ? "porridge" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1108 | (item_typ == POT_DEGENERATION) ? "degeneration" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1109 | (item_typ == POT_DECAY) ? "decay" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1110 | (item_typ == POT_WATER) ? "water" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1111 | (item_typ == POT_EXPERIENCE) ? "experience" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1112 | (item_typ == POT_MAGIC) ? "magic" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1113 | (item_typ == POT_RESTORE_ABILITIES) ? "restore abilities" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1114 | (item_typ == POT_STRONG_POISON) ? "strong poison" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1115 | (item_typ == POT_BERSERK_RAGE) ? "berserk rage" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1116 | (item_typ == POT_CURE_MUTATION) ? "cure mutation" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1117 | (item_typ == POT_MUTATION) ? "mutation" : "bugginess", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1118 | ITEMNAME_SIZE); | ~~~~~~~~~~~~~~ itemname.cc:1125:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1125 | strncat(buff, | ~~~~~~~^~~~~~ 1126 | (primary == 0) ? "" : | ~~~~~~~~~~~~~~~~~~~~~~ 1127 | (primary == 1) ? "bubbling " : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1128 | (primary == 2) ? "lumpy " : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1129 | (primary == 3) ? "fuming " : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1130 | (primary == 4) ? "smoky " : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1131 | (primary == 5) ? "fizzy " : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1132 | (primary == 6) ? "glowing " : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1133 | (primary == 7) ? "sedimented " : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1134 | (primary == 8) ? "metallic " : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1135 | (primary == 9) ? "murky " : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1136 | (primary == 10) ? "gluggy " : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1137 | (primary == 11) ? "viscous " : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1138 | (primary == 12) ? "oily " : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1139 | (primary == 13) ? "slimy " : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1140 | (primary == 14) ? "emulsified " : "buggy ", ITEMNAME_SIZE); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:1142:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1142 | strncat(buff, | ~~~~~~~^~~~~~ 1143 | (secondary == 0) ? "clear" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1144 | (secondary == 1) ? "blue" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1145 | (secondary == 2) ? "black" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1146 | (secondary == 3) ? "silvery" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1147 | (secondary == 4) ? "cyan" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1148 | (secondary == 5) ? "purple" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1149 | (secondary == 6) ? "orange" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1150 | (secondary == 7) ? "inky" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1151 | (secondary == 8) ? "red" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1152 | (secondary == 9) ? "yellow" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1153 | (secondary == 10) ? "green" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1154 | (secondary == 11) ? "brown" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1155 | (secondary == 12) ? "pink" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1156 | (secondary == 13) ? "white" : "buggy", ITEMNAME_SIZE); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:1250:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1250 | strncat(buff, tmp_buff, ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:1258:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1258 | strncat(buff, (it_quant > 1) ? "ie" : "y", ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:1264:16: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1264 | strncat(buff, (it_quant == 1) ? " " : "s ", ITEMNAME_SIZE); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:1303:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1303 | strncat( buff, buff3 , ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:1270:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1270 | strncat(buff, (item_typ == SCR_IDENTIFY) ? "identify" : | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1271 | (item_typ == SCR_TELEPORTATION) ? "teleportation" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1272 | (item_typ == SCR_FEAR) ? "fear" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1273 | (item_typ == SCR_NOISE) ? "noise" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1274 | (item_typ == SCR_REMOVE_CURSE) ? "remove curse" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1275 | (item_typ == SCR_DETECT_CURSE) ? "detect curse" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1276 | (item_typ == SCR_SUMMONING) ? "summoning" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1277 | (item_typ == SCR_ENCHANT_WEAPON_I) ? "enchant weapon I" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1278 | (item_typ == SCR_ENCHANT_ARMOUR) ? "enchant armour" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1279 | (item_typ == SCR_TORMENT) ? "torment" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1280 | (item_typ == SCR_RANDOM_USELESSNESS) ? "random uselessness" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1281 | (item_typ == SCR_CURSE_WEAPON) ? "curse weapon" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1282 | (item_typ == SCR_CURSE_ARMOUR) ? "curse armour" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1283 | (item_typ == SCR_IMMOLATION) ? "immolation" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1284 | (item_typ == SCR_BLINKING) ? "blinking" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1285 | (item_typ == SCR_PAPER) ? "paper" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1286 | (item_typ == SCR_MAGIC_MAPPING) ? "magic mapping" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1287 | (item_typ == SCR_FORGETFULNESS) ? "forgetfulness" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1288 | (item_typ == SCR_ACQUIREMENT) ? "acquirement" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1289 | (item_typ == SCR_ENCHANT_WEAPON_II) ? "enchant weapon II" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1290 | (item_typ == SCR_VORPALISE_WEAPON) ? "vorpalise weapon" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1291 | (item_typ == SCR_RECHARGING) ? "recharging" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1292 | //(item_typ == 23) ? "portal travel" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1293 | (item_typ == SCR_ENCHANT_WEAPON_III) ? "enchant weapon III" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1294 | : "bugginess", | ~~~~~~~~~~~~~~ 1295 | ITEMNAME_SIZE); | ~~~~~~~~~~~~~~ itemname.cc:1330:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1330 | strncat(buff, randart_ring_name(item), ITEMNAME_SIZE); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:1350:24: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1350 | strncat( buff, tmp_quant , ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:1360:28: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1360 | strncat( buff, tmp_quant , ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:1479:24: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1479 | strncat(buff, randart_ring_name(item), ITEMNAME_SIZE); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:1573:24: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1573 | strncat(buff, randart_ring_name(item), ITEMNAME_SIZE); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:1676:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1676 | strncat( buff, (it_plus == RUNE_DIS) ? "iron" : | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1677 | (it_plus == RUNE_GEHENNA) ? "obsidian" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1678 | (it_plus == RUNE_COCYTUS) ? "icy" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1679 | (it_plus == RUNE_TARTARUS) ? "bone" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1680 | (it_plus == RUNE_SLIME_PITS) ? "slimy" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1681 | (it_plus == RUNE_VAULTS) ? "silver" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1682 | (it_plus == RUNE_SNAKE_PIT) ? "serpentine" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1683 | (it_plus == RUNE_ELVEN_HALLS) ? "elven" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1684 | (it_plus == RUNE_TOMB) ? "golden" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1685 | (it_plus == RUNE_SWAMP) ? "decaying" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1686 | | 1687 | // pandemonium and abyss runes: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1688 | (it_plus == RUNE_DEMONIC) ? "demonic" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1689 | (it_plus == RUNE_ABYSSAL) ? "abyssal" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1690 | | 1691 | // special pandemonium runes: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1692 | (it_plus == RUNE_MNOLEG) ? "glowing" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1693 | (it_plus == RUNE_LOM_LOBON) ? "magical" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1694 | (it_plus == RUNE_CEREBOV) ? "fiery" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1695 | (it_plus == RUNE_GLOORX_VLOQ) ? "dark" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1696 | : "buggy", | ~~~~~~~~~~ 1697 | ITEMNAME_SIZE); | ~~~~~~~~~~~~~~ itemname.cc:1714:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1714 | strncat(buff, item_not_ident( item, ISFLAG_KNOW_TYPE ) ? "cards" : | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1715 | (item_typ == MISC_DECK_OF_WONDERS) ? "wonders" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1716 | (item_typ == MISC_DECK_OF_SUMMONINGS) ? "summonings" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1717 | (item_typ == MISC_DECK_OF_TRICKS) ? "tricks" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1718 | (item_typ == MISC_DECK_OF_POWER) ? "power" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1719 | : "bugginess", | ~~~~~~~~~~~~~~ 1720 | ITEMNAME_SIZE); | ~~~~~~~~~~~~~~ itemname.cc:1730:24: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1730 | strncat(buff, | ~~~~~~~^~~~~~ 1731 | (item_typ == MISC_CRYSTAL_BALL_OF_SEEING) ? "seeing" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1732 | (item_typ == MISC_CRYSTAL_BALL_OF_ENERGY) ? "energy" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1733 | (item_typ == MISC_CRYSTAL_BALL_OF_FIXATION) ? "fixation" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1734 | : "bugginess", | ~~~~~~~~~~~~~~ 1735 | ITEMNAME_SIZE); | ~~~~~~~~~~~~~~ itemname.cc:1802:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1802 | strncat(buff, (item_not_ident( item, ISFLAG_KNOW_TYPE )) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1803 | ? "sealed bronze flask" : "bottled efreet", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1804 | ITEMNAME_SIZE ); | ~~~~~~~~~~~~~~~ itemname.cc:1824:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1824 | strncat(buff, (primary == 0) ? "" : | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1825 | (primary == 1) ? "chunky " : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1826 | (primary == 2) ? "thick " : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1827 | (primary == 3) ? "thin " : | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 1828 | (primary == 4) ? "wide " : | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 1829 | (primary == 5) ? "glowing " : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1830 | (primary == 6) ? "dog-eared " : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1831 | (primary == 7) ? "oblong " : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1832 | (primary == 8) ? "runed " : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1833 | | 1834 | // these last three were single spaces {dlb} | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1835 | (primary == 9) ? "" : | ~~~~~~~~~~~~~~~~~~~~~ 1836 | (primary == 10) ? "" : (primary == 11) ? "" : "buggily ", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1837 | ITEMNAME_SIZE); | ~~~~~~~~~~~~~~ itemname.cc:1839:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1839 | strncat(buff, (secondary == 0) ? "paperback " : | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1840 | (secondary == 1) ? "hardcover " : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1841 | (secondary == 2) ? "leatherbound " : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1842 | (secondary == 3) ? "metal-bound " : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1843 | (secondary == 4) ? "papyrus " : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1844 | // these two were single spaces, too {dlb} | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1845 | (secondary == 5) ? "" : | ~~~~~~~~~~~~~~~~~~~~~~~ 1846 | (secondary == 6) ? "" : "buggy ", ITEMNAME_SIZE); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:1853:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1853 | strncat(buff, skill_name(it_plus), ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:1866:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1866 | strncat(buff, (item_typ == BOOK_MINOR_MAGIC_I | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1867 | || item_typ == BOOK_MINOR_MAGIC_II | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1868 | || item_typ == BOOK_MINOR_MAGIC_III) ? "Minor Magic" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1869 | (item_typ == BOOK_CONJURATIONS_I | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1870 | || item_typ == BOOK_CONJURATIONS_II) ? "Conjurations" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1871 | (item_typ == BOOK_FLAMES) ? "Flames" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1872 | (item_typ == BOOK_FROST) ? "Frost" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1873 | (item_typ == BOOK_SUMMONINGS) ? "Summonings" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1874 | (item_typ == BOOK_FIRE) ? "Fire" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1875 | (item_typ == BOOK_ICE) ? "Ice" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1876 | (item_typ == BOOK_SURVEYANCES) ? "Surveyances" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1877 | (item_typ == BOOK_SPATIAL_TRANSLOCATIONS) ? "Spatial Translocations" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1878 | (item_typ == BOOK_ENCHANTMENTS) ? "Enchantments" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1879 | (item_typ == BOOK_TEMPESTS) ? "the Tempests" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1880 | (item_typ == BOOK_DEATH) ? "Death" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1881 | (item_typ == BOOK_HINDERANCE) ? "Hinderance" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1882 | (item_typ == BOOK_CHANGES) ? "Changes" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1883 | (item_typ == BOOK_TRANSFIGURATIONS) ? "Transfigurations" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1884 | (item_typ == BOOK_PRACTICAL_MAGIC) ? "Practical Magic" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1885 | (item_typ == BOOK_WAR_CHANTS) ? "War Chants" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1886 | (item_typ == BOOK_CLOUDS) ? "Clouds" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1887 | (item_typ == BOOK_HEALING) ? "Healing" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1888 | (item_typ == BOOK_NECROMANCY) ? "Necromancy" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1889 | (item_typ == BOOK_CALLINGS) ? "Callings" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1890 | (item_typ == BOOK_CHARMS) ? "Charms" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1891 | (item_typ == BOOK_DEMONOLOGY) ? "Demonology" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1892 | (item_typ == BOOK_AIR) ? "Air" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1893 | (item_typ == BOOK_SKY) ? "the Sky" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1894 | (item_typ == BOOK_DIVINATIONS) ? "Divinations" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1895 | (item_typ == BOOK_WARP) ? "the Warp" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1896 | (item_typ == BOOK_ENVENOMATIONS) ? "Envenomations" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1897 | (item_typ == BOOK_ANNIHILATIONS) ? "Annihilations" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1898 | (item_typ == BOOK_UNLIFE) ? "Unlife" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1899 | (item_typ == BOOK_CONTROL) ? "Control" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1900 | (item_typ == BOOK_MUTATIONS) ? "Morphology" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1901 | (item_typ == BOOK_TUKIMA) ? "Tukima" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1902 | (item_typ == BOOK_GEOMANCY) ? "Geomancy" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1903 | (item_typ == BOOK_EARTH) ? "the Earth" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1904 | (item_typ == BOOK_WIZARDRY) ? "Wizardry" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1905 | (item_typ == BOOK_POWER) ? "Power" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1906 | (item_typ == BOOK_CANTRIPS) ? "Cantrips" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1907 | (item_typ == BOOK_PARTY_TRICKS) ? "Party Tricks" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1908 | (item_typ == BOOK_STALKING) ? "Stalking" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1909 | : "Bugginess", | ~~~~~~~~~~~~~~ 1910 | ITEMNAME_SIZE ); | ~~~~~~~~~~~~~~~ itemname.cc:1918:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1918 | strncat(buff, (item.special == 0) ? "curved" : | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1919 | (item.special == 1) ? "glowing" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1920 | (item.special == 2) ? "thick" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1921 | (item.special == 3) ? "thin" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1922 | (item.special == 4) ? "long" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1923 | (item.special == 5) ? "twisted" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1924 | (item.special == 6) ? "jeweled" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1925 | (item.special == 7) ? "runed" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1926 | (item.special == 8) ? "smoking" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1927 | (item.special == 9) ? "gnarled" : // was "" {dlb} | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1928 | (item.special == 10) ? "" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1929 | (item.special == 11) ? "" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1930 | (item.special == 12) ? "" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1931 | (item.special == 13) ? "" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1932 | (item.special == 14) ? "" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1933 | (item.special == 15) ? "" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1934 | (item.special == 16) ? "" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1935 | (item.special == 17) ? "" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1936 | (item.special == 18) ? "" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1937 | (item.special == 19) ? "" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1938 | (item.special == 20) ? "" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1939 | (item.special == 21) ? "" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1940 | (item.special == 22) ? "" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1941 | (item.special == 23) ? "" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1942 | (item.special == 24) ? "" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1943 | (item.special == 25) ? "" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1944 | (item.special == 26) ? "" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1945 | (item.special == 27) ? "" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1946 | (item.special == 28) ? "" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1947 | (item.special == 29) ? "" : "buggy", ITEMNAME_SIZE); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:1951:16: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1951 | strncat( buff, (item_is_rod( item ) ? "rod" : "staff"), ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:1957:20: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1957 | strncat(buff, (item_typ == STAFF_WIZARDRY) ? "wizardry" : | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1958 | (item_typ == STAFF_POWER) ? "power" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1959 | (item_typ == STAFF_FIRE) ? "fire" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1960 | (item_typ == STAFF_COLD) ? "cold" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1961 | (item_typ == STAFF_POISON) ? "poison" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1962 | (item_typ == STAFF_ENERGY) ? "energy" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1963 | (item_typ == STAFF_DEATH) ? "death" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1964 | (item_typ == STAFF_CONJURATION) ? "conjuration" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1965 | (item_typ == STAFF_ENCHANTMENT) ? "enchantment" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1966 | (item_typ == STAFF_SMITING) ? "smiting" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1967 | (item_typ == STAFF_STRIKING) ? "striking" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1968 | (item_typ == STAFF_WARDING) ? "warding" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1969 | (item_typ == STAFF_DISCOVERY) ? "discovery" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1970 | (item_typ == STAFF_DEMONOLOGY) ? "demonology" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1971 | (item_typ == STAFF_AIR) ? "air" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1972 | (item_typ == STAFF_EARTH) ? "earth" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1973 | (item_typ == STAFF_SUMMONING | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1974 | || item_typ == STAFF_SPELL_SUMMONING) ? "summoning" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1975 | (item_typ == STAFF_DESTRUCTION_I | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1976 | || item_typ == STAFF_DESTRUCTION_II | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1977 | || item_typ == STAFF_DESTRUCTION_III | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1978 | || item_typ == STAFF_DESTRUCTION_IV) ? "destruction" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1979 | (item_typ == STAFF_CHANNELING) ? "channeling" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1980 | : "bugginess", ITEMNAME_SIZE ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:1988:16: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 1988 | strncat( buff, (item_typ == ORB_ZOT) ? "Zot" : | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1989 | /* ****************************************************************** | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1990 | (item_typ == 1) ? "Zug" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1991 | (item_typ == 2) ? "Xob" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1992 | (item_typ == 3) ? "Ix" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1993 | (item_typ == 4) ? "Xug" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1994 | (item_typ == 5) ? "Zob" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1995 | (item_typ == 6) ? "Ik" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1996 | (item_typ == 7) ? "Grolp" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1997 | (item_typ == 8) ? "fo brO ehT" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1998 | (item_typ == 9) ? "Plob" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1999 | (item_typ == 10) ? "Zuggle-Glob" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2000 | (item_typ == 11) ? "Zin" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2001 | (item_typ == 12) ? "Qexigok" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2002 | (item_typ == 13) ? "Bujuk" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2003 | (item_typ == 14) ? "Uhen Tiquritu" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2004 | (item_typ == 15) ? "Idohoxom Sovuf" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2005 | (item_typ == 16) ? "Voc Vocilicoso" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2006 | (item_typ == 17) ? "Chanuaxydiviha" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2007 | (item_typ == 18) ? "Ihexodox" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2008 | (item_typ == 19) ? "Rynok Pol" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2009 | (item_typ == 20) ? "Nemelex" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2010 | (item_typ == 21) ? "Sif Muna" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2011 | (item_typ == 22) ? "Okawaru" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2012 | (item_typ == 23) ? "Kikubaaqudgha" : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2013 | ****************************************************************** */ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2014 | "Bugginess", ITEMNAME_SIZE ); // change back to "Zot" if source of problems cannot be found {dlb} | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:2034:16: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 2034 | strncat(buff, (item_typ == CORPSE_BODY) ? "corpse" : | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2035 | (item_typ == CORPSE_SKELETON) ? "skeleton" : "corpse bug", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2036 | ITEMNAME_SIZE ); | ~~~~~~~~~~~~~~~ itemname.cc:2050:16: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 2050 | strncat(buff, ugug, ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:2053:16: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 2053 | strncat(buff, ugug, ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:2056:16: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 2056 | strncat(buff, ugug, ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:2059:16: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 2059 | strncat(buff, ugug, ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:2062:16: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 2062 | strncat(buff, ugug, ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:2065:16: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 2065 | strncat(buff, ugug, ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:2032:16: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] 2032 | strncat(buff, tmp_buff, ITEMNAME_SIZE ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ itemname.cc:2032:16: warning: 'char* strncat(char*, const char*, size_t)' specified bound 200 equals destination size [-Wstringop-overflow=] c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c items.cc items.cc: In function 'int move_item_to_player(int, int, bool)': items.cc:994:10: warning: variable 'brek' set but not used [-Wunused-but-set-variable=] 994 | char brek = 0; | ^~~~ items.cc: In function 'void handle_time(long int)': items.cc:1954:35: warning: conversion from 'SPELL_TYPES' to 'unsigned char' changes value from 'SPTYP_RANDOM' to '0' [-Woverflow] 1954 | unsigned char which_miscast = SPTYP_RANDOM; | ^~~~~~~~~~~~ items.cc:2017:37: warning: conversion from 'SPELL_TYPES' to 'unsigned char' changes value from 'SPTYP_EARTH' to '0' [-Woverflow] 2017 | which_miscast = SPTYP_EARTH; | ^~~~~~~~~~~ items.cc: In function 'void drop()': items.cc:1396:42: warning: '%s' directive output may be truncated writing up to 199 bytes into a region of size 191 [-Wformat-truncation=] 1396 | snprintf( info, INFO_SIZE, "You drop %s.", str_pass ); | ^~ ~~~~~~~~ items.cc:1396:13: note: 'snprintf' output between 11 and 210 bytes into a destination of size 200 1396 | snprintf( info, INFO_SIZE, "You drop %s.", str_pass ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ items.cc: In function 'void handle_time(long int)': items.cc:2251:58: warning: '%s' directive output may be truncated writing up to 199 bytes into a region of size 183 [-Wformat-truncation=] 2251 | snprintf( info, INFO_SIZE, "You are wielding %s.", str_pass ); | ^~ ~~~~~~~~ items.cc:2251:21: note: 'snprintf' output between 19 and 218 bytes into a destination of size 200 2251 | snprintf( info, INFO_SIZE, "You are wielding %s.", str_pass ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c lev-pand.cc c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c libutil.cc c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c macro.cc c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c maps.cc c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c message.cc c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c misc.cc misc.cc: In function 'void down_stairs(bool, int)': misc.cc:754:13: warning: variable 'sysg' set but not used [-Wunused-but-set-variable=] 754 | int sysg; | ^~~~ misc.cc:540:10: warning: variable 'leave_abyss_pan' set but not used [-Wunused-but-set-variable=] 540 | bool leave_abyss_pan = false; | ^~~~~~~~~~~~~~~ c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c monplace.cc c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c mon-pick.cc c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c monstuff.cc monstuff.cc: In function 'void get_mimic_item(const monsters*, item_def&)': monstuff.cc:100:44: warning: suggest parentheses around '+' inside '<<' [-Wparentheses] 100 | item.special = ((mimic->x << 8 + mimic->y) & RANDART_SEED_MASK); | ~~^~~~~~~~~~ monstuff.cc:123:44: warning: suggest parentheses around '+' inside '<<' [-Wparentheses] 123 | item.special = ((mimic->x << 8 + mimic->y) & RANDART_SEED_MASK); | ~~^~~~~~~~~~ monstuff.cc: In function 'void handle_nearby_ability(monsters*)': monstuff.cc:2214:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 2213 | else if (monster_habitat(monster->type) == grd[monster->x][monster->y] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2214 | && (one_chance_in(5) | ^~~~~~~~~~~~~~~~~~~~ 2215 | || (grid_distance( monster->x, monster->y, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2216 | you.x_pos, you.y_pos ) > 1 | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 2217 | && monster->type != MONS_ELECTRICAL_EEL | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2218 | && monster->type != MONS_LAVA_SNAKE | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2219 | && !one_chance_in(20)) | ~~~~~~~~~~~~~~~~~~~~~~ 2220 | || monster->hit_points <= monster->max_hit_points / 2) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c monspeak.cc touch mon-util.cc c++ -Wall -DBSD -O2 -pipe -DSAVE_DIR_PATH=\"/usr/local/lib/dungeon-crawl-4.0.0b26/\" -c mon-util.cc mon-util.cc: In function 'bool ms_requires_tracer(int)': mon-util.cc:1560:10: error: expected unqualified-id before 'requires' 1560 | bool requires = false; | ^~~~~~~~ mon-util.cc:1594:22: error: expected '{' before '=' token 1594 | requires = true; | ^ mon-util.cc:1629:21: error: expected '{' before ')' token 1629 | return (requires); | ^ *** Error 1 in /usr/obj/ports/dungeon-crawl-4.0.0b26/dc400b26-src/source (makefile.bsd:59 'mon-util.o') *** Error 2 in games/dungeon-crawl (/usr/ports/infrastructure/mk/bsd.port.mk:3079 '/usr/obj/ports/dungeon-crawl-4.0.0b26/.build_done': @cd /...) *** Error 2 in games/dungeon-crawl (/usr/ports/infrastructure/mk/bsd.port.mk:2722 'build': @lock=dungeon-crawl-4.0.0b26p5; export _LOCKS_HE...) ===> Exiting games/dungeon-crawl with an error *** Error 1 in /usr/ports (infrastructure/mk/bsd.port.subdir.mk:144 'build': @: ${echo_msg:=echo}; : ${target:=build}; for i in ; do eval...) >>> Ended at 1785064080.55 max_stuck=45.01/depends=10.18/show-prepare-results=5.89/junk=7.42/patch=3.96/configure=1.30/build=1009.08 Error: job failed with 512 on sparc64-0c at 1785064080