<86>Nov  7 05:39:11 userdel[2046202]: delete user 'rooter'
<86>Nov  7 05:39:11 userdel[2046202]: removed group 'rooter' owned by 'rooter'
<86>Nov  7 05:39:11 userdel[2046202]: removed shadow group 'rooter' owned by 'rooter'
<86>Nov  7 05:39:11 groupadd[2046216]: group added to /etc/group: name=rooter, GID=645
<86>Nov  7 05:39:11 groupadd[2046216]: group added to /etc/gshadow: name=rooter
<86>Nov  7 05:39:11 groupadd[2046216]: new group: name=rooter, GID=645
<86>Nov  7 05:39:11 useradd[2046220]: new user: name=rooter, UID=645, GID=645, home=/root, shell=/bin/bash
<86>Nov  7 05:39:11 userdel[2046233]: delete user 'builder'
<86>Nov  7 05:39:11 userdel[2046233]: removed group 'builder' owned by 'builder'
<86>Nov  7 05:39:11 userdel[2046233]: removed shadow group 'builder' owned by 'builder'
<86>Nov  7 05:39:11 groupadd[2046242]: group added to /etc/group: name=builder, GID=646
<86>Nov  7 05:39:11 groupadd[2046242]: group added to /etc/gshadow: name=builder
<86>Nov  7 05:39:11 groupadd[2046242]: new group: name=builder, GID=646
<86>Nov  7 05:39:11 useradd[2046250]: new user: name=builder, UID=646, GID=646, home=/usr/src, shell=/bin/bash
/usr/src/in/srpm/tome-2.3.5-alt3.src.rpm: bad symbols in the license tag: /
<13>Nov  7 05:39:13 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686221 installed
<13>Nov  7 05:39:13 rpmi: libX11-locales-3:1.6.12-alt1 sisyphus+256796.100.1.1 1598422159 installed
<13>Nov  7 05:39:13 rpmi: xorg-proto-devel-2020.1-alt1 sisyphus+250406.100.1.1 1587554810 installed
<13>Nov  7 05:39:13 rpmi: libXdmcp-1.1.3-alt1 sisyphus+225206.600.1.2 1552949347 installed
<13>Nov  7 05:39:13 rpmi: libXau-1.0.9-alt1 sisyphus+223149.200.2.1 1551268156 installed
<13>Nov  7 05:39:13 rpmi: libxcb-1.14-alt1 sisyphus+247358.200.1.3 1583854223 installed
<13>Nov  7 05:39:14 rpmi: libxcb-devel-1.14-alt1 sisyphus+247358.200.1.3 1583854223 installed
<13>Nov  7 05:39:14 rpmi: libX11-3:1.6.12-alt1 sisyphus+256796.100.1.1 1598422159 installed
<13>Nov  7 05:39:14 rpmi: libX11-devel-3:1.6.12-alt1 sisyphus+256796.100.1.1 1598422159 installed
<13>Nov  7 05:39:14 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686221 installed
Building target platforms: x86_64
Building for target x86_64
Wrote: /usr/src/in/nosrpm/tome-2.3.5-alt3.nosrc.rpm
Installing tome-2.3.5-alt3.src.rpm
Building target platforms: x86_64
Building for target x86_64
Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.85817
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf tome-2.3.5
+ echo 'Source #0 (tome-2.3.5.tar):'
Source #0 (tome-2.3.5.tar):
+ /bin/tar -xf /usr/src/RPM/SOURCES/tome-2.3.5.tar
+ cd tome-2.3.5
+ /bin/chmod -c -Rf u+rwX,go-w .
+ echo 'Patch #0 (tome-2.2.6-alt-make.patch):'
Patch #0 (tome-2.2.6-alt-make.patch):
+ /usr/bin/patch -p1
patching file src/makefile.std
Hunk #1 succeeded at 470 (offset 13 lines).
+ echo 'Patch #1 (tome-2.3.5-alt-exit.patch):'
Patch #1 (tome-2.3.5-alt-exit.patch):
+ /usr/bin/patch -p1
patching file src/loadsave.c
+ exit 0
Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.85817
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ cd tome-2.3.5
+ cd src
+ make -f makefile.std 'COPTS=-pipe -frecord-gcc-switches -Wall -g -O2' 'DEFINES=-DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK' 'LIBS=-lX11 -lncurses' LIBDIR=/var/lib/tome/
make: Entering directory '/usr/src/RPM/BUILD/tome-2.3.5/src'
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/lapi.o lua/lapi.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/lcode.o lua/lcode.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/ldebug.o lua/ldebug.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/ldo.o lua/ldo.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/lfunc.o lua/lfunc.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/lgc.o lua/lgc.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/llex.o lua/llex.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/lmem.o lua/lmem.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/lobject.o lua/lobject.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/lparser.o lua/lparser.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/lstate.o lua/lstate.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/lstring.o lua/lstring.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/ltable.o lua/ltable.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/ltests.o lua/ltests.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/ltm.o lua/ltm.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/lundump.o lua/lundump.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/lvm.o lua/lvm.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/lzio.o lua/lzio.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/lauxlib.o lua/lauxlib.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/lbaselib.o lua/lbaselib.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/ldblib.o lua/ldblib.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/liolib.o lua/liolib.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/lstrlib.o lua/lstrlib.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/tolua_lb.o lua/tolua_lb.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/tolua_rg.o lua/tolua_rg.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/tolua_tt.o lua/tolua_tt.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/tolua_tm.o lua/tolua_tm.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/tolua_gp.o lua/tolua_gp.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/tolua_eh.o lua/tolua_eh.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua/tolua_bd.o lua/tolua_bd.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\"   -o tolua lua/lapi.o lua/lcode.o lua/ldebug.o lua/ldo.o lua/lfunc.o lua/lgc.o lua/llex.o lua/lmem.o lua/lobject.o lua/lparser.o lua/lstate.o lua/lstring.o lua/ltable.o lua/ltests.o lua/ltm.o lua/lundump.o lua/lvm.o lua/lzio.o lua/lauxlib.o lua/lbaselib.o lua/ldblib.o lua/liolib.o lua/lstrlib.o lua/tolua_lb.o lua/tolua_rg.o lua/tolua_tt.o lua/tolua_tm.o lua/tolua_gp.o lua/tolua_eh.o lua/tolua_bd.o lua/tolua.c lua/tolualua.c -lX11 -lncurses
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o script.o script.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o lua_bind.o lua_bind.c
./tolua -n util -o w_util.c util.pkg
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o w_util.o w_util.c
./tolua -n player -o w_player.c player.pkg
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o w_player.o w_player.c
./tolua -n z_pack -o w_z_pack.c z_pack.pkg
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o w_z_pack.o w_z_pack.c
./tolua -n object -o w_obj.c object.pkg
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o w_obj.o w_obj.c
./tolua -n monster -o w_mnster.c monster.pkg
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o w_mnster.o w_mnster.c
./tolua -n spells -o w_spells.c spells.pkg
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o w_spells.o w_spells.c
./tolua -n quest -o w_quest.c quest.pkg
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o w_quest.o w_quest.c
./tolua -n player_c -o w_play_c.c player_c.pkg
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o w_play_c.o w_play_c.c
./tolua -n dungeon -o w_dun.c dungeon.pkg
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o w_dun.o w_dun.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o main-gcu.o main-gcu.c
main-gcu.c: In function 'Term_xtra_gcu':
main-gcu.c:755:9: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
  755 |   (void)write(1, "\007", 1);
      |         ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/string.h:508,
                 from /usr/include/memory.h:29,
                 from h-system.h:66,
                 from h-basic.h:16,
                 from angband.h:22,
                 from main-gcu.c:46:
In function 'strncat',
    inlined from 'Term_xtra_gcu' at main-gcu.c:822:5:
/usr/include/bits/string_fortified.h:136:10: warning: '__builtin___strncat_chk' output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation]
  136 |   return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o main-x11.o main-x11.c
main-x11.c: In function 'CheckEvent':
main-x11.c:2288:25: warning: variable 'hgt' set but not used [-Wunused-but-set-variable]
 2288 |    int cols, rows, wid, hgt;
      |                         ^~~
main-x11.c:2288:20: warning: variable 'wid' set but not used [-Wunused-but-set-variable]
 2288 |    int cols, rows, wid, hgt;
      |                    ^~~
In file included from /usr/include/string.h:508,
                 from /usr/include/memory.h:29,
                 from h-system.h:66,
                 from h-basic.h:16,
                 from angband.h:22,
                 from main-x11.c:95:
In function 'strncat',
    inlined from 'Term_xtra_x11' at main-x11.c:2487:5:
/usr/include/bits/string_fortified.h:136:10: warning: '__builtin___strncat_chk' output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation]
  136 |   return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o main-xaw.o main-xaw.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o main-sdl.o main-sdl.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o main-dmy.o main-dmy.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o z-rand.o z-rand.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o z-util.o z-util.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o z-form.o z-form.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o z-virt.o z-virt.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o z-term.o z-term.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o z-sock.o z-sock.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o variable.o variable.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o tables.o tables.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o plots.o plots.c
In file included from plots.c:441:
q_one.c: In function 'quest_one_death_hook':
q_one.c:229:16: warning: variable 'r_ptr' set but not used [-Wunused-but-set-variable]
  229 |  monster_race *r_ptr;
      |                ^~~~~
In file included from plots.c:473:
q_thrain.c: In function 'quest_thrain_death_hook':
q_thrain.c:6:7: warning: variable 'r_idx' set but not used [-Wunused-but-set-variable]
    6 |  s32b r_idx, m_idx;
      |       ^~~~~
In file included from plots.c:473:
q_thrain.c: In function 'quest_thrain_gen_hook':
q_thrain.c:156:9: warning: variable 'i' set but not used [-Wunused-but-set-variable]
  156 |     int i;
      |         ^
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o util.o util.c
util.c: In function 'get_quantity':
util.c:3627:31: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 's32b' {aka 'int'} [-Wformat=]
 3627 |   sprintf(tmp, "Quantity (1-%ld): ", max);
      |                             ~~^      ~~~
      |                               |      |
      |                               |      s32b {aka int}
      |                               long int
      |                             %d
util.c:3638:18: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 's32b' {aka 'int'} [-Wformat=]
 3638 |  sprintf(buf, "%ld", amt);
      |                ~~^   ~~~
      |                  |   |
      |                  |   s32b {aka int}
      |                  long int
      |                %d
util.c: In function 'pause_line':
util.c:3671:6: warning: variable 'i' set but not used [-Wunused-but-set-variable]
 3671 |  int i;
      |      ^
util.c: In function 'get_month_name':
util.c:4485:42: warning: '%s' directive writing up to 19 bytes into a region of size between 11 and 30 [-Wformat-overflow=]
 4485 |    if (full) sprintf(buf, "%s day of %s (%s day)", buf2, month_name[i], buf3);
      |                                          ^~                             ~~~~
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from util.c:6:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 16 or more bytes (assuming 54) into a destination of size 40
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/string.h:508,
                 from /usr/include/memory.h:29,
                 from h-system.h:66,
                 from h-basic.h:16,
                 from angband.h:22,
                 from util.c:6:
In function 'strncpy',
    inlined from 'askfor_aux' at util.c:3392:3:
/usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 100 equals destination size [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o cave.o cave.c
cave.c: In function 'vinfo_init':
cave.c:3546:15: warning: variable 'p' set but not used [-Wunused-but-set-variable]
 3546 |   vinfo_type *p;
      |               ^
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o dungeon.o dungeon.c
dungeon.c: In function 'process_world':
dungeon.c:1283:15: warning: variable 'k_ptr' set but not used [-Wunused-but-set-variable]
 1283 |  object_kind *k_ptr;
      |               ^~~~~
dungeon.c: In function 'process_player':
dungeon.c:4778:18: warning: variable 'r_ptr' set but not used [-Wunused-but-set-variable]
 4778 |    monster_race *r_ptr;
      |                  ^~~~~
dungeon.c: In function 'process_world':
dungeon.c:1654:28: warning: '%s' directive writing up to 79 bytes into a region of size 71 [-Wformat-overflow=]
 1654 |    sprintf(ouch, "wielding %s", o_name);
      |                            ^~   ~~~~~~
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from dungeon.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 10 and 89 bytes into a destination of size 80
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o melee1.o melee1.c
melee1.c: In function 'carried_make_attack_normal':
melee1.c:135:7: warning: variable 'explode' set but not used [-Wunused-but-set-variable]
  135 |  bool explode = FALSE;
      |       ^~~~~~~
melee1.c:133:7: warning: variable 'blinked' set but not used [-Wunused-but-set-variable]
  133 |  bool blinked;
      |       ^~~~~~~
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o melee2.o melee2.c
melee2.c: In function 'process_monsters':
melee2.c:7631:6: warning: variable 'old_monster_ego_idx' set but not used [-Wunused-but-set-variable]
 7631 |  int old_monster_ego_idx;
      |      ^~~~~~~~~~~~~~~~~~~
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o modules.o modules.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o object1.o object1.c
object1.c: In function 'show_equip_aux':
object1.c:4791:35: warning: '%s' directive writing up to 79 bytes into a region of size 67 [-Wformat-overflow=]
 4791 |     sprintf(o_name, "(two handed) %s", q_name);
      |                                   ^~   ~~~~~~
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from object1.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 14 and 93 bytes into a destination of size 80
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
object1.c: In function 'get_item_floor':
object1.c:5676:24: warning: ') ' directive writing 2 bytes into a region of size between 0 and 159 [-Wformat-overflow=]
 5676 |   sprintf(tmp_val, "(%s) %s", out_val, pmt);
      |                        ^~
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from object1.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 4 or more bytes (assuming 163) into a destination of size 160
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o object2.o object2.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o randart.o randart.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o squeltch.o squeltch.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o traps.o traps.c
traps.c: In function 'do_player_trap_call_out':
traps.c:22:16: warning: variable 'r_ptr' set but not used [-Wunused-but-set-variable]
   22 |  monster_race *r_ptr;
      |                ^~~~~
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o monster1.o monster1.c
monster1.c: In function 'roff_aux':
monster1.c:127:7: warning: variable 'flags8' set but not used [-Wunused-but-set-variable]
  127 |  u32b flags8;
      |       ^~~~~~
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o monster2.o monster2.c
monster2.c: In function 'place_monster_one':
monster2.c:2135:9: warning: variable 'base' set but not used [-Wunused-but-set-variable]
 2135 |  int i, base;
      |         ^~~~
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o monster3.o monster3.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o ghost.o ghost.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o xtra1.o xtra1.c
xtra1.c: In function 'prt_piety':
xtra1.c:149:19: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 's32b' {aka 'int'} [-Wformat=]
  149 |  sprintf(tmp, "%9ld", p_ptr->grace);
      |                ~~~^   ~~~~~~~~~~~~
      |                   |        |
      |                   long int s32b {aka int}
      |                %9d
xtra1.c: In function 'prt_mh':
xtra1.c:432:16: warning: variable 'r_ptr' set but not used [-Wunused-but-set-variable]
  432 |  monster_race *r_ptr;
      |                ^~~~~
xtra1.c: In function 'health_redraw':
xtra1.c:963:34: warning: comparison of constant '0' with boolean expression is always false [-Wbool-compare]
  963 |  else if (!m_list[health_who].hp < 0)
      |                                  ^
xtra1.c:963:34: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
xtra1.c:963:11: note: add parentheses around left hand side expression to silence this warning
  963 |  else if (!m_list[health_who].hp < 0)
      |           ^~~~~~~~~~~~~~~~~~~~~~
      |           (                     )
xtra1.c: In function 'get_archery_skill':
xtra1.c:2378:15: warning: variable 'o_ptr' set but not used [-Wunused-but-set-variable]
 2378 |  object_type *o_ptr;
      |               ^~~~~
xtra1.c: In function 'calc_bonuses':
xtra1.c:2708:6: warning: variable 'old_invis' set but not used [-Wunused-but-set-variable]
 2708 |  int old_invis;
      |      ^~~~~~~~~
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o xtra2.o xtra2.c
xtra2.c: In function 'check_experience':
xtra2.c:3514:6: warning: variable 'i' set but not used [-Wunused-but-set-variable]
 3514 |  int i, gained = 0;
      |      ^
xtra2.c: In function 'check_experience_obj':
xtra2.c:3654:6: warning: variable 'i' set but not used [-Wunused-but-set-variable]
 3654 |  int i;
      |      ^
xtra2.c: In function 'monster_death':
xtra2.c:3933:7: warning: variable 'cloned' set but not used [-Wunused-but-set-variable]
 3933 |  bool cloned = FALSE;
      |       ^~~~~~
xtra2.c: In function 'mon_take_hit':
xtra2.c:4653:17: warning: variable 'k_ptr' set but not used [-Wunused-but-set-variable]
 4653 |    object_kind *k_ptr;
      |                 ^~~~~
In file included from /usr/include/string.h:508,
                 from /usr/include/memory.h:29,
                 from h-system.h:66,
                 from h-basic.h:16,
                 from angband.h:22,
                 from xtra2.c:14:
In function 'strcpy',
    inlined from 'switch_subrace' at xtra2.c:7743:3:
/usr/include/bits/string_fortified.h:90:10: warning: '__builtin_strcpy' accessing 1 byte at offsets [-2147483648, 2147483647] and [-2147483648, 2147483647] may overlap 1 byte at offset -2147483648 [-Wrestrict]
   90 |   return __builtin___strcpy_chk (__dest, __src, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o skills.o skills.c
skills.c: In function 'dump_skills':
skills.c:260:28: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'int' [-Wformat=]
  260 |   fprintf(fff, "%-49s%s%02ld.%03ld [%01ld.%03ld]",
      |                        ~~~~^
      |                            |
      |                            long int
      |                        %02d
skills.c:260:34: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'int' [-Wformat=]
  260 |   fprintf(fff, "%-49s%s%02ld.%03ld [%01ld.%03ld]",
      |                              ~~~~^
      |                                  |
      |                                  long int
      |                              %03d
skills.c:260:41: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'int' [-Wformat=]
  260 |   fprintf(fff, "%-49s%s%02ld.%03ld [%01ld.%03ld]",
      |                                     ~~~~^
      |                                         |
      |                                         long int
      |                                     %01d
......
  264 |           s_info[i].mod / 1000, s_info[i].mod % 1000);
      |           ~~~~~~~~~~~~~~~~~~~~           
      |                         |
      |                         int
skills.c:260:47: warning: format '%ld' expects argument of type 'long int', but argument 8 has type 'int' [-Wformat=]
  260 |   fprintf(fff, "%-49s%s%02ld.%03ld [%01ld.%03ld]",
      |                                           ~~~~^
      |                                               |
      |                                               long int
      |                                           %03d
......
  264 |           s_info[i].mod / 1000, s_info[i].mod % 1000);
      |                                 ~~~~~~~~~~~~~~~~~~~~
      |                                               |
      |                                               int
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o powers.o powers.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o gods.o gods.c
gods.c: In function 'show_god_info':
gods.c:84:6: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
   84 |  int tmp;
      |      ^~~
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o spells1.o spells1.c
spells1.c: In function 'project_o':
spells1.c:3919:10: warning: variable 'yy' set but not used [-Wunused-but-set-variable]
 3919 |  int xx, yy;
      |          ^~
spells1.c:3919:6: warning: variable 'xx' set but not used [-Wunused-but-set-variable]
 3919 |  int xx, yy;
      |      ^~
spells1.c: In function 'potion_smash_effect':
spells1.c:8882:7: warning: variable 'ident' set but not used [-Wunused-but-set-variable]
 8882 |  bool ident = FALSE;
      |       ^~~~~
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o spells2.o spells2.c
spells2.c: In function 'recharge':
spells2.c:4561:15: warning: variable 'k_ptr' set but not used [-Wunused-but-set-variable]
 4561 |  object_kind *k_ptr;
      |               ^~~~~
spells2.c: In function 'swap_position':
spells2.c:6671:17: warning: variable 'r_ptr' set but not used [-Wunused-but-set-variable]
 6671 |  monster_race * r_ptr;
      |                 ^~~~~
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o status.o status.c
status.c: In function 'status_numeric':
status.c:505:23: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 's32b' {aka 'int'} [-Wformat=]
  505 |    sprintf(strnum, "%lu", val);
      |                     ~~^   ~~~
      |                       |   |
      |                       |   s32b {aka int}
      |                       long unsigned int
      |                     %u
status.c:516:23: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 's32b' {aka 'int'} [-Wformat=]
  516 |    sprintf(strnum, "%lu", val);
      |                     ~~^   ~~~
      |                       |   |
      |                       |   s32b {aka int}
      |                       long unsigned int
      |                     %u
status.c: In function 'status_companion':
status.c:749:43: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'u32b' {aka 'unsigned int'} [-Wformat=]
  749 |    fprintf(fff, "  Lev/Exp : [[[[[G%d / %ld]\n", m_ptr->level, m_ptr->exp);
      |                                         ~~^                    ~~~~~~~~~~
      |                                           |                         |
      |                                           long int                  u32b {aka unsigned int}
      |                                         %d
status.c:750:76: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat=]
  750 |    if (m_ptr->level < MONSTER_LEVEL_MAX) fprintf(fff, "  Next lvl: [[[[[G%ld]\n", MONSTER_EXP((s32b)m_ptr->level + 1));
      |                                                                          ~~^
      |                                                                            |
      |                                                                            long int
      |                                                                          %d
status.c:753:38: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 's32b' {aka 'int'} [-Wformat=]
  753 |    fprintf(fff, "  HP      : [[[[[G%ld / %ld]\n", m_ptr->hp, m_ptr->maxhp);
      |                                    ~~^            ~~~~~~~~~
      |                                      |                 |
      |                                      long int          s32b {aka int}
      |                                    %d
status.c:753:44: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 's32b' {aka 'int'} [-Wformat=]
  753 |    fprintf(fff, "  HP      : [[[[[G%ld / %ld]\n", m_ptr->hp, m_ptr->maxhp);
      |                                          ~~^                 ~~~~~~~~~~~~
      |                                            |                      |
      |                                            long int               s32b {aka int}
      |                                          %d
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o files.o files.c
files.c: In function 'file_character':
files.c:3135:24: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 's32b' {aka 'int'} [-Wformat=]
 3135 |  fprintf(fff, "  [%s %ld.%ld.%ld%s Character Sheet]\n\n",
      |                      ~~^
      |                        |
      |                        long int
      |                      %d
 3136 |          game_module, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, IS_CVS);
      |                       ~~~~~~~~~~~~~
      |                       |
      |                       s32b {aka int}
files.c:3135:28: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 's32b' {aka 'int'} [-Wformat=]
 3135 |  fprintf(fff, "  [%s %ld.%ld.%ld%s Character Sheet]\n\n",
      |                          ~~^
      |                            |
      |                            long int
      |                          %d
 3136 |          game_module, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, IS_CVS);
      |                                      ~~~~~~~~~~~~~
      |                                      |
      |                                      s32b {aka int}
files.c:3135:32: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 's32b' {aka 'int'} [-Wformat=]
 3135 |  fprintf(fff, "  [%s %ld.%ld.%ld%s Character Sheet]\n\n",
      |                              ~~^
      |                                |
      |                                long int
      |                              %d
 3136 |          game_module, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, IS_CVS);
      |                                                     ~~~~~~~~~~~~~
      |                                                     |
      |                                                     s32b {aka int}
files.c:3300:41: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 's32b' {aka 'int'} [-Wformat=]
 3300 |    fprintf(fff, "\n You have defeated %lu enemies.", Total);
      |                                       ~~^            ~~~~~
      |                                         |            |
      |                                         |            s32b {aka int}
      |                                         long unsigned int
      |                                       %u
files.c:3320:48: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'u32b' {aka 'unsigned int'} [-Wformat=]
 3320 |           (death ? "\n Your adventure lasted %ld day%s." : "\n You have been adventuring for %ld day%s."),
      |                                              ~~^
      |                                                |
      |                                                long int
      |                                              %d
 3321 |           days, (days == 1) ? "" : "s");
      |           ~~~~                                  
      |           |
      |           u32b {aka unsigned int}
files.c:3320:96: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'u32b' {aka 'unsigned int'} [-Wformat=]
 3320 |           (death ? "\n Your adventure lasted %ld day%s." : "\n You have been adventuring for %ld day%s."),
      |                                                                                              ~~^
      |                                                                                                |
      |                                                                                                long int
      |                                                                                              %d
 3321 |           days, (days == 1) ? "" : "s");
      |           ~~~~                                                                                  
      |           |
      |           u32b {aka unsigned int}
files.c: In function 'txt_to_html':
files.c:4115:6: warning: variable 'size' set but not used [-Wunused-but-set-variable]
 4115 |  int size = 0;
      |      ^~~~
files.c: In function 'html_screenshot':
files.c:4558:56: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 's32b' {aka 'int'} [-Wformat=]
 4558 |  fprintf(htm, "<meta name=\"GENERATOR\" content=\"%s %ld.%ld.%ld\"/>\n",
      |                                                      ~~^
      |                                                        |
      |                                                        long int
      |                                                      %d
 4559 |          game_module, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH);
      |                       ~~~~~~~~~~~~~                     
      |                       |
      |                       s32b {aka int}
files.c:4558:60: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 's32b' {aka 'int'} [-Wformat=]
 4558 |  fprintf(htm, "<meta name=\"GENERATOR\" content=\"%s %ld.%ld.%ld\"/>\n",
      |                                                          ~~^
      |                                                            |
      |                                                            long int
      |                                                          %d
 4559 |          game_module, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH);
      |                                      ~~~~~~~~~~~~~          
      |                                      |
      |                                      s32b {aka int}
files.c:4558:64: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 's32b' {aka 'int'} [-Wformat=]
 4558 |  fprintf(htm, "<meta name=\"GENERATOR\" content=\"%s %ld.%ld.%ld\"/>\n",
      |                                                              ~~^
      |                                                                |
      |                                                                long int
      |                                                              %d
 4559 |          game_module, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH);
      |                                                     ~~~~~~~~~~~~~
      |                                                     |
      |                                                     s32b {aka int}
files.c: In function 'show_highclass':
files.c:5885:15: warning: variable 'ps' set but not used [-Wunused-but-set-variable]
 5885 |  int pcs, pr, ps, pc, clev, al;
      |               ^~
files.c:5885:6: warning: variable 'pcs' set but not used [-Wunused-but-set-variable]
 5885 |  int pcs, pr, ps, pc, clev, al;
      |      ^~~
files.c: In function 'race_score':
files.c:6011:29: warning: variable 'al' set but not used [-Wunused-but-set-variable]
 6011 |  int pr, ps, pc, clev, pcs, al, lastlev;
      |                             ^~
files.c:6011:24: warning: variable 'pcs' set but not used [-Wunused-but-set-variable]
 6011 |  int pr, ps, pc, clev, pcs, al, lastlev;
      |                        ^~~
files.c:6011:14: warning: variable 'pc' set but not used [-Wunused-but-set-variable]
 6011 |  int pr, ps, pc, clev, pcs, al, lastlev;
      |              ^~
files.c:6011:10: warning: variable 'ps' set but not used [-Wunused-but-set-variable]
 6011 |  int pr, ps, pc, clev, pcs, al, lastlev;
      |          ^~
files.c: In function 'top_twenty':
files.c:6188:29: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 's32b' {aka 'int'} [-Wformat=]
 6188 |  sprintf(the_score.what, "%lu.%lu.%lu",
      |                           ~~^
      |                             |
      |                             long unsigned int
      |                           %u
 6189 |          VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH);
      |          ~~~~~~~~~~~~~       
      |          |
      |          s32b {aka int}
files.c:6188:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 's32b' {aka 'int'} [-Wformat=]
 6188 |  sprintf(the_score.what, "%lu.%lu.%lu",
      |                               ~~^
      |                                 |
      |                                 long unsigned int
      |                               %u
 6189 |          VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH);
      |                         ~~~~~~~~~~~~~
      |                         |
      |                         s32b {aka int}
files.c:6188:37: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 's32b' {aka 'int'} [-Wformat=]
 6188 |  sprintf(the_score.what, "%lu.%lu.%lu",
      |                                   ~~^
      |                                     |
      |                                     long unsigned int
      |                                   %u
 6189 |          VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH);
      |                                        ~~~~~~~~~~~~~
      |                                        |
      |                                        s32b {aka int}
files.c:6116:25: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
 6116 |  high_score the_score, *tmp;
      |                         ^~~
files.c: In function 'predict_score':
files.c:6286:29: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 's32b' {aka 'int'} [-Wformat=]
 6286 |  sprintf(the_score.what, "%lu.%lu.%lu",
      |                           ~~^
      |                             |
      |                             long unsigned int
      |                           %u
 6287 |          VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH);
      |          ~~~~~~~~~~~~~       
      |          |
      |          s32b {aka int}
files.c:6286:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 's32b' {aka 'int'} [-Wformat=]
 6286 |  sprintf(the_score.what, "%lu.%lu.%lu",
      |                               ~~^
      |                                 |
      |                                 long unsigned int
      |                               %u
 6287 |          VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH);
      |                         ~~~~~~~~~~~~~
      |                         |
      |                         s32b {aka int}
files.c:6286:37: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 's32b' {aka 'int'} [-Wformat=]
 6286 |  sprintf(the_score.what, "%lu.%lu.%lu",
      |                                   ~~^
      |                                     |
      |                                     long unsigned int
      |                                   %u
 6287 |          VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH);
      |                                        ~~~~~~~~~~~~~
      |                                        |
      |                                        s32b {aka int}
files.c: In function 'display_player':
files.c:1584:28: warning: '%d' directive writing between 1 and 5 bytes into a region of size 4 [-Wformat-overflow=]
 1584 |   (void)sprintf(s, "Slow (-%d)", 110 - speed);
      |                            ^~
files.c:1584:20: note: directive argument in the range [1, 32878]
 1584 |   (void)sprintf(s, "Slow (-%d)", 110 - speed);
      |                    ^~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from files.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 10 and 14 bytes into a destination of size 11
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
files.c:1578:28: warning: '%d' directive writing between 1 and 5 bytes into a region of size 4 [-Wformat-overflow=]
 1578 |   (void)sprintf(s, "Fast (+%d)", speed - 110);
      |                            ^~
files.c:1578:20: note: directive argument in the range [1, 32667]
 1578 |   (void)sprintf(s, "Fast (+%d)", speed - 110);
      |                    ^~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from files.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 10 and 14 bytes into a destination of size 11
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
files.c: In function 'file_character':
files.c:3113:49: warning: '%s' directive writing up to 1023 bytes into a region of size 138 [-Wformat-overflow=]
 3113 |   (void)sprintf(out_val, "Replace existing file %s? ", buf);
      |                                                 ^~     ~~~
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from files.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 25 and 1048 bytes into a destination of size 160
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
files.c: In function 'predict_score':
files.c:6310:29: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=]
 6310 |  sprintf(the_score.p_r, "%2d", p_ptr->prace);
      |                             ^
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from files.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 3 and 4 bytes into a destination of size 3
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
files.c:6311:29: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=]
 6311 |  sprintf(the_score.p_s, "%2d", p_ptr->pracem);
      |                             ^
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from files.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 3 and 4 bytes into a destination of size 3
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
files.c:6312:29: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=]
 6312 |  sprintf(the_score.p_c, "%2d", p_ptr->pclass);
      |                             ^
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from files.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 3 and 4 bytes into a destination of size 3
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
files.c:6313:30: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=]
 6313 |  sprintf(the_score.p_cs, "%2d", p_ptr->pspec);
      |                              ^
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from files.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 3 and 4 bytes into a destination of size 3
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
files.c:6316:30: warning: '%3d' directive writing between 3 and 6 bytes into a region of size 4 [-Wformat-overflow=]
 6316 |  sprintf(the_score.cur_lev, "%3d", p_ptr->lev);
      |                              ^~~
files.c:6316:29: note: directive argument in the range [-32768, 32767]
 6316 |  sprintf(the_score.cur_lev, "%3d", p_ptr->lev);
      |                             ^~~~~
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from files.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 4 and 7 bytes into a destination of size 4
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
files.c:6317:30: warning: '%3d' directive writing between 3 and 6 bytes into a region of size 4 [-Wformat-overflow=]
 6317 |  sprintf(the_score.cur_dun, "%3d", dun_level);
      |                              ^~~
files.c:6317:29: note: directive argument in the range [-32768, 32767]
 6317 |  sprintf(the_score.cur_dun, "%3d", dun_level);
      |                             ^~~~~
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from files.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 4 and 7 bytes into a destination of size 4
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
files.c:6318:30: warning: '%3d' directive writing between 3 and 6 bytes into a region of size 4 [-Wformat-overflow=]
 6318 |  sprintf(the_score.max_lev, "%3d", p_ptr->max_plv);
      |                              ^~~
files.c:6318:29: note: directive argument in the range [-32768, 32767]
 6318 |  sprintf(the_score.max_lev, "%3d", p_ptr->max_plv);
      |                             ^~~~~
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from files.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 4 and 7 bytes into a destination of size 4
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
files.c:6319:30: warning: '%3d' directive writing between 3 and 6 bytes into a region of size 4 [-Wformat-overflow=]
 6319 |  sprintf(the_score.max_dun, "%3d", max_dlv[dungeon_type]);
      |                              ^~~
files.c:6319:29: note: directive argument in the range [-32768, 32767]
 6319 |  sprintf(the_score.max_dun, "%3d", max_dlv[dungeon_type]);
      |                             ^~~~~
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from files.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 4 and 7 bytes into a destination of size 4
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
files.c:6321:35: warning: '%3d' directive writing between 3 and 6 bytes into a region of size 4 [-Wformat-overflow=]
 6321 |  sprintf(the_score.arena_number, "%3d", p_ptr->arena_number);  /* -KMW- */
      |                                   ^~~
files.c:6321:34: note: directive argument in the range [-32768, 32767]
 6321 |  sprintf(the_score.arena_number, "%3d", p_ptr->arena_number);  /* -KMW- */
      |                                  ^~~~~
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from files.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 4 and 7 bytes into a destination of size 4
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
files.c:6322:35: warning: '%3d' directive writing between 3 and 6 bytes into a region of size 4 [-Wformat-overflow=]
 6322 |  sprintf(the_score.inside_arena, "%3d", p_ptr->inside_arena);
      |                                   ^~~
files.c:6322:34: note: directive argument in the range [-32768, 32767]
 6322 |  sprintf(the_score.inside_arena, "%3d", p_ptr->inside_arena);
      |                                  ^~~~~
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from files.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 4 and 7 bytes into a destination of size 4
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
files.c:6323:35: warning: '%3d' directive writing between 3 and 6 bytes into a region of size 4 [-Wformat-overflow=]
 6323 |  sprintf(the_score.inside_quest, "%3d", p_ptr->inside_quest);
      |                                   ^~~
files.c:6323:34: note: directive argument in the range [-32768, 32767]
 6323 |  sprintf(the_score.inside_quest, "%3d", p_ptr->inside_quest);
      |                                  ^~~~~
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from files.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 4 and 7 bytes into a destination of size 4
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
files.c:6324:35: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=]
 6324 |  sprintf(the_score.exit_bldg, "%3d", p_ptr->exit_bldg);  /* -KMW- */
      |                                   ^
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from files.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 4 and 5 bytes into a destination of size 4
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
files.c: In function 'close_game':
files.c:6533:37: warning: '%s' directive writing up to 79 bytes into a region of size between 33 and 64 [-Wformat-overflow=]
 6533 |    sprintf(buf, "\n%s was killed by %s on %s\n", player_name,
      |                                     ^~
 6534 |            died_from, long_day);
      |            ~~~~~~~~~                 
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from files.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 22 and 161 bytes into a destination of size 80
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
files.c:6217:29: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=]
 6217 |  sprintf(the_score.p_r, "%2d", p_ptr->prace);
      |                             ^
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from files.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 3 and 4 bytes into a destination of size 3
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
files.c:6218:29: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=]
 6218 |  sprintf(the_score.p_s, "%2d", p_ptr->pracem);
      |                             ^
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from files.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 3 and 4 bytes into a destination of size 3
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
files.c:6219:29: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=]
 6219 |  sprintf(the_score.p_c, "%2d", p_ptr->pclass);
      |                             ^
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from files.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 3 and 4 bytes into a destination of size 3
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
files.c:6220:30: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=]
 6220 |  sprintf(the_score.p_cs, "%2d", p_ptr->pspec);
      |                              ^
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from files.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 3 and 4 bytes into a destination of size 3
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
files.c:6223:30: warning: '%3d' directive writing between 3 and 6 bytes into a region of size 4 [-Wformat-overflow=]
 6223 |  sprintf(the_score.cur_lev, "%3d", p_ptr->lev);
      |                              ^~~
files.c:6223:29: note: directive argument in the range [-32768, 32767]
 6223 |  sprintf(the_score.cur_lev, "%3d", p_ptr->lev);
      |                             ^~~~~
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from files.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 4 and 7 bytes into a destination of size 4
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
files.c:6224:30: warning: '%3d' directive writing between 3 and 6 bytes into a region of size 4 [-Wformat-overflow=]
 6224 |  sprintf(the_score.cur_dun, "%3d", dun_level);
      |                              ^~~
files.c:6224:29: note: directive argument in the range [-32768, 32767]
 6224 |  sprintf(the_score.cur_dun, "%3d", dun_level);
      |                             ^~~~~
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from files.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 4 and 7 bytes into a destination of size 4
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
files.c:6225:30: warning: '%3d' directive writing between 3 and 6 bytes into a region of size 4 [-Wformat-overflow=]
 6225 |  sprintf(the_score.max_lev, "%3d", p_ptr->max_plv);
      |                              ^~~
files.c:6225:29: note: directive argument in the range [-32768, 32767]
 6225 |  sprintf(the_score.max_lev, "%3d", p_ptr->max_plv);
      |                             ^~~~~
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from files.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 4 and 7 bytes into a destination of size 4
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
files.c:6226:30: warning: '%3d' directive writing between 3 and 6 bytes into a region of size 4 [-Wformat-overflow=]
 6226 |  sprintf(the_score.max_dun, "%3d", max_dlv[dungeon_type]);
      |                              ^~~
files.c:6226:29: note: directive argument in the range [-32768, 32767]
 6226 |  sprintf(the_score.max_dun, "%3d", max_dlv[dungeon_type]);
      |                             ^~~~~
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from files.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 4 and 7 bytes into a destination of size 4
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
files.c:6228:35: warning: '%3d' directive writing between 3 and 6 bytes into a region of size 4 [-Wformat-overflow=]
 6228 |  sprintf(the_score.arena_number, "%3d", p_ptr->arena_number);  /* -KMW- */
      |                                   ^~~
files.c:6228:34: note: directive argument in the range [-32768, 32767]
 6228 |  sprintf(the_score.arena_number, "%3d", p_ptr->arena_number);  /* -KMW- */
      |                                  ^~~~~
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from files.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 4 and 7 bytes into a destination of size 4
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
files.c:6229:35: warning: '%3d' directive writing between 3 and 6 bytes into a region of size 4 [-Wformat-overflow=]
 6229 |  sprintf(the_score.inside_arena, "%3d", p_ptr->inside_arena);
      |                                   ^~~
files.c:6229:34: note: directive argument in the range [-32768, 32767]
 6229 |  sprintf(the_score.inside_arena, "%3d", p_ptr->inside_arena);
      |                                  ^~~~~
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from files.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 4 and 7 bytes into a destination of size 4
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
files.c:6230:35: warning: '%3d' directive writing between 3 and 6 bytes into a region of size 4 [-Wformat-overflow=]
 6230 |  sprintf(the_score.inside_quest, "%3d", p_ptr->inside_quest);
      |                                   ^~~
files.c:6230:34: note: directive argument in the range [-32768, 32767]
 6230 |  sprintf(the_score.inside_quest, "%3d", p_ptr->inside_quest);
      |                                  ^~~~~
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from files.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 4 and 7 bytes into a destination of size 4
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
files.c:6231:35: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=]
 6231 |  sprintf(the_score.exit_bldg, "%3d", p_ptr->exit_bldg);  /* -KMW- */
      |                                   ^
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from files.c:13:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 4 and 5 bytes into a destination of size 4
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o notes.o notes.c
notes.c: In function 'add_note':
notes.c:97:23: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat=]
   97 |  sprintf(long_day, "%ld:%02ld %s, %s", (bst(HOUR, turn) % 12 == 0) ? 12 : (bst(HOUR, turn) % 12),
      |                     ~~^                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                       |                                                 |
      |                       long int                                          int
      |                     %d
notes.c:97:29: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 's32b' {aka 'int'} [-Wformat=]
   97 |  sprintf(long_day, "%ld:%02ld %s, %s", (bst(HOUR, turn) % 12 == 0) ? 12 : (bst(HOUR, turn) % 12),
      |                         ~~~~^
      |                             |
      |                             long int
      |                         %02d
   98 |          bst(MINUTE, turn), (bst(HOUR, turn) < 12) ? "AM" : "PM", get_month_name(bst(DAY, turn), FALSE,
      |          ~~~~~~~~~~~~~~~~~   
      |          |
      |          s32b {aka int}
notes.c:90:8: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
   90 |  char *tmp;
      |        ^~~
notes.c: In function 'add_note_type':
notes.c:127:18: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat=]
  127 |  sprintf(buf, "%ld", bst(YEAR, turn) + START_YEAR);
      |                ~~^
      |                  |
      |                  long int
      |                %d
notes.c:128:23: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat=]
  128 |  sprintf(long_day, "%ld:%02ld %s the %s of III %s", (bst(HOUR, turn) % 12 == 0) ? 12 : (bst(HOUR, turn) % 12), bst(MINUTE, turn), (bst(HOUR, turn) < 12) ? "AM" : "PM", get_month_name(bst(DAY, turn), FALSE, FALSE), buf);
      |                     ~~^                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                       |                                                              |
      |                       long int                                                       int
      |                     %d
notes.c:128:29: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 's32b' {aka 'int'} [-Wformat=]
  128 |  sprintf(long_day, "%ld:%02ld %s the %s of III %s", (bst(HOUR, turn) % 12 == 0) ? 12 : (bst(HOUR, turn) % 12), bst(MINUTE, turn), (bst(HOUR, turn) < 12) ? "AM" : "PM", get_month_name(bst(DAY, turn), FALSE, FALSE), buf);
      |                         ~~~~^                                                                                  ~~~~~~~~~~~~~~~~~
      |                             |                                                                                  |
      |                             long int                                                                           s32b {aka int}
      |                         %02d
notes.c: In function 'add_note':
notes.c:107:36: warning: '%s' directive writing up to 99 bytes into a region of size between 15 and 75 [-Wformat-overflow=]
  107 |  sprintf(final_note, "%-20s %s %c: %s", long_day, depths, code, buf);
      |                                    ^~                           ~~~
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from notes.c:14:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 26 and 185 bytes into a destination of size 100
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
notes.c: In function 'add_note_type':
notes.c:128:48: warning: '%s' directive writing up to 1023 bytes into a region of size between 28 and 30 [-Wformat-overflow=]
  128 |  sprintf(long_day, "%ld:%02ld %s the %s of III %s", (bst(HOUR, turn) % 12 == 0) ? 12 : (bst(HOUR, turn) % 12), bst(MINUTE, turn), (bst(HOUR, turn) < 12) ? "AM" : "PM", get_month_name(bst(DAY, turn), FALSE, FALSE), buf);
      |                                                ^~                                                                                                                                                                     ~~~
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from notes.c:14:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 21 or more bytes (assuming 1046) into a destination of size 50
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o loadsave.o loadsave.c
loadsave.c: In function 'do_s16b':
loadsave.c:1516:8: warning: variable 'val' set but not used [-Wunused-but-set-variable]
 1516 |   s16b val;
      |        ^~~
loadsave.c: In function 'do_item':
loadsave.c:2038:18: warning: variable 'e_ptr' set but not used [-Wunused-but-set-variable]
 2038 |   ego_item_type *e_ptr;
      |                  ^~~~~
loadsave.c: In function 'do_savefile_aux':
loadsave.c:3167:17: warning: variable 'r_ptr' set but not used [-Wunused-but-set-variable]
 3167 |   monster_race *r_ptr;
      |                 ^~~~~
At top level:
loadsave.c:1728:13: warning: 'skip_ver_string' defined but not used [-Wunused-function]
 1728 | static void skip_ver_string(u32b version, int flag)
      |             ^~~~~~~~~~~~~~~
loadsave.c:1715:13: warning: 'do_ver_string' defined but not used [-Wunused-function]
 1715 | static void do_ver_string(char *str, int max, u32b version, char *defval,
      |             ^~~~~~~~~~~~~
loadsave.c:1705:13: warning: 'skip_ver_s32b' defined but not used [-Wunused-function]
 1705 | static void skip_ver_s32b(u32b version, int flag)
      |             ^~~~~~~~~~~~~
loadsave.c:1695:13: warning: 'do_ver_s32b' defined but not used [-Wunused-function]
 1695 | static void do_ver_s32b(s32b *v, u32b version, s32b defval, int flag)
      |             ^~~~~~~~~~~
loadsave.c:1685:13: warning: 'skip_ver_u32b' defined but not used [-Wunused-function]
 1685 | static void skip_ver_u32b(u32b version, int flag)
      |             ^~~~~~~~~~~~~
loadsave.c:1675:13: warning: 'do_ver_u32b' defined but not used [-Wunused-function]
 1675 | static void do_ver_u32b(u32b *v, u32b version, u32b defval, int flag)
      |             ^~~~~~~~~~~
loadsave.c:1665:13: warning: 'skip_ver_s16b' defined but not used [-Wunused-function]
 1665 | static void skip_ver_s16b(u32b version, int flag)
      |             ^~~~~~~~~~~~~
loadsave.c:1645:13: warning: 'skip_ver_u16b' defined but not used [-Wunused-function]
 1645 | static void skip_ver_u16b(u32b version, int flag)
      |             ^~~~~~~~~~~~~
loadsave.c:1635:13: warning: 'do_ver_u16b' defined but not used [-Wunused-function]
 1635 | static void do_ver_u16b(u16b *v, u32b version, u16b defval, int flag)
      |             ^~~~~~~~~~~
loadsave.c:1613:13: warning: 'do_ver_byte' defined but not used [-Wunused-function]
 1613 | static void do_ver_byte(byte *v, u32b version, byte defval, int flag)
      |             ^~~~~~~~~~~
In file included from /usr/include/string.h:508,
                 from /usr/include/memory.h:29,
                 from h-system.h:66,
                 from h-basic.h:16,
                 from angband.h:22,
                 from loadsave.c:7:
In function 'strncpy',
    inlined from 'do_subrace' at loadsave.c:240:4:
/usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 81 equals destination size [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'strncpy',
    inlined from 'do_subrace' at loadsave.c:246:4:
/usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 81 equals destination size [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
loadsave.c: In function 'save_dungeon':
loadsave.c:827:16: warning: '%s' directive writing up to 31 bytes into a region of size 16 [-Wformat-overflow=]
  827 |  sprintf(tmp, "%s.%s", player_base, buf);
      |                ^~      ~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from loadsave.c:7:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 2 and 37 bytes into a destination of size 16
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
loadsave.c: In function 'load_dungeon':
loadsave.c:2985:16: warning: '%s' directive writing up to 31 bytes into a region of size 16 [-Wformat-overflow=]
 2985 |  sprintf(tmp, "%s.%s", player_base, ext);
      |                ^~      ~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from loadsave.c:7:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 2 or more bytes (assuming 33) into a destination of size 16
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o cmd1.o cmd1.c
cmd1.c: In function 'carried_monster_attack':
cmd1.c:833:13: warning: variable 'c_ptr' set but not used [-Wunused-but-set-variable]
  833 |  cave_type *c_ptr;
      |             ^~~~~
cmd1.c: In function 'incarnate_monster_attack':
cmd1.c:1525:54: warning: ?: using integer constants in boolean context [-Wint-in-bool-context]
 1525 |  for (ap_cnt = 0; ap_cnt < (p_ptr->num_blow > 4) ? 4 : p_ptr->num_blow;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
cmd1.c:1481:13: warning: variable 'c_ptr' set but not used [-Wunused-but-set-variable]
 1481 |  cave_type *c_ptr;
      |             ^~~~~
cmd1.c: In function 'py_attack':
cmd1.c:2523:7: warning: variable 'no_extra' set but not used [-Wunused-but-set-variable]
 2523 |  bool no_extra = FALSE;
      |       ^~~~~~~~
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o cmd2.o cmd2.c
cmd2.c: In function 'do_cmd_bash_fountain':
cmd2.c:34:13: warning: variable 'c_ptr' set but not used [-Wunused-but-set-variable]
   34 |  cave_type *c_ptr;
      |             ^~~~~
cmd2.c: In function 'do_cmd_boomerang':
cmd2.c:4004:7: warning: variable 'hit_wall' set but not used [-Wunused-but-set-variable]
 4004 |  bool hit_wall = FALSE;
      |       ^~~~~~~~
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o cmd3.o cmd3.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o cmd4.o cmd4.c
cmd4.c: In function 'do_cmd_knowledge_pets':
cmd4.c:3832:16: warning: variable 'r_ptr' set but not used [-Wunused-but-set-variable]
 3832 |  monster_race *r_ptr;
      |                ^~~~~
cmd4.c: In function 'do_cmd_knowledge_kill_count':
cmd4.c:3966:38: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 's32b' {aka 'int'} [-Wformat=]
 3966 |    fprintf(fff, "You have defeated %lu enemies.\n\n", Total);
      |                                    ~~^                ~~~~~
      |                                      |                |
      |                                      |                s32b {aka int}
      |                                      long unsigned int
      |                                    %u
cmd4.c:4020:28: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 's32b' {aka 'int'} [-Wformat=]
 4020 |  fprintf(fff, "   Total: %lu creature%s killed.\n", Total, (Total == 1 ? "" : "s"));
      |                          ~~^                        ~~~~~
      |                            |                        |
      |                            long unsigned int        s32b {aka int}
      |                          %u
cmd4.c: In function 'do_cmd_knowledge_quests':
cmd4.c:4312:41: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 's32b' {aka 'int'} [-Wformat=]
 4312 |     fprintf(fff, "Number: %d, Killed: %ld.\n",
      |                                       ~~^
      |                                         |
      |                                         long int
      |                                       %d
 4313 |             random_quests[dun_level].type, quest[QUEST_RANDOM].data[0]);
      |                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                    |
      |                                                                    s32b {aka int}
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o cmd5.o cmd5.c
cmd5.c: In function 'fetch':
cmd5.c:468:7: warning: variable 'flag' set but not used [-Wunused-but-set-variable]
  468 |  bool flag;
      |       ^~~~
cmd5.c: In function 'get_item_hook_find_spell':
cmd5.c:2120:42: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=]
 2120 |  sprintf(buf2, "return find_spell(\"%s\")", buf);
      |                                          ^
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from cmd5.c:14:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 22 and 101 bytes into a destination of size 100
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o cmd6.o cmd6.c
cmd6.c: In function 'do_cmd_use_staff':
cmd6.c:3760:12: warning: variable 'ident' set but not used [-Wunused-but-set-variable]
 3760 |  int item, ident, chance;
      |            ^~~~~
cmd6.c: In function 'do_cmd_aim_wand':
cmd6.c:3964:27: warning: variable 'sval' set but not used [-Wunused-but-set-variable]
 3964 |  int item, ident, chance, sval;
      |                           ^~~~
cmd6.c:3964:12: warning: variable 'ident' set but not used [-Wunused-but-set-variable]
 3964 |  int item, ident, chance, sval;
      |            ^~~~~
cmd6.c: In function 'zap_combine_rod_tip':
cmd6.c:4161:15: warning: variable 'k_ptr' set but not used [-Wunused-but-set-variable]
 4161 |  object_kind *k_ptr;
      |               ^~~~~
cmd6.c: In function 'do_cmd_zap_rod':
cmd6.c:4252:15: warning: variable 'k_ptr' set but not used [-Wunused-but-set-variable]
 4252 |  object_kind *k_ptr;
      |               ^~~~~
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o cmd7.o cmd7.c
cmd7.c: In function 'show_flags':
cmd7.c:1279:33: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'u32b' {aka 'unsigned int'} [-Wformat=]
 1279 |     sprintf(ttt, "%c) %s (exp %ld)",
      |                               ~~^
      |                                 |
      |                                 long int
      |                               %d
......
 1282 |             a_select_flags[i].xp);
      |             ~~~~~~~~~~~~~~~~~~~~ 
      |                              |
      |                              u32b {aka unsigned int}
cmd7.c: In function 'brand_ammo':
cmd7.c:4989:6: warning: variable 'allowable' set but not used [-Wunused-but-set-variable]
 4989 |  int allowable;
      |      ^~~~~~~~~
cmd7.c: In function 'do_cmd_set_piercing':
cmd7.c:5446:6: warning: variable 'ext' set but not used [-Wunused-but-set-variable]
 5446 |  int ext = 0;
      |      ^~~
cmd7.c: In function 'do_cmd_summoner_extract':
cmd7.c:7099:15: warning: variable 'e' set but not used [-Wunused-but-set-variable]
 7099 |  int item, r, e;
      |               ^
cmd7.c: In function 'do_cmd_symbiotic':
cmd7.c:7549:16: warning: variable 'r_ptr' set but not used [-Wunused-but-set-variable]
 7549 |  monster_race *r_ptr;
      |                ^~~~~
cmd7.c: In function 'alchemist_recipe_book':
cmd7.c:2954:15: warning: iteration 19 invokes undefined behavior [-Waggressive-loop-optimizations]
 2954 |    if (essence[i] || i > MAX_BATERIE_SVAL)
      |        ~~~~~~~^~~
cmd7.c:2953:3: note: within this loop
 2953 |   for (num = 0, i = 0; i < MAX_BATERIE_SVAL + 7 ; i++)
      |   ^~~
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o help.o help.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o generate.o generate.c
generate.c: In function 'alloc_stairs':
generate.c:1081:22: warning: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Wparentheses]
 1081 |                     (!dungeon_flags1 & DF1_FORCE_DOWN)))
      |                      ^~~~~~~~~~~~~~~
generate.c: In function 'init_feat_info':
generate.c:7340:28: warning: variable 'fill_lim3' set but not used [-Wunused-but-set-variable]
 7340 |  int fill_lim1, fill_lim2, fill_lim3;
      |                            ^~~~~~~~~
generate.c:7339:30: warning: variable 'floor_lim3' set but not used [-Wunused-but-set-variable]
 7339 |  int floor_lim1, floor_lim2, floor_lim3;
      |                              ^~~~~~~~~~
generate.c: In function 'cave_gen':
generate.c:7623:7: warning: variable 'town_level' set but not used [-Wunused-but-set-variable]
 7623 |  s16b town_level = 0;
      |       ^~~~~~~~~~
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o gen_maze.o gen_maze.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o gen_evol.o gen_evol.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o wild.o wild.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o levels.o levels.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o store.o store.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o bldg.o bldg.c
bldg.c: In function 'select_quest_monster':
bldg.c:1466:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 1466 |  if (r_ptr->flags1 & RF1_FRIEND) amt *= 3; amt /= 2;
      |  ^~
bldg.c:1466:44: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 1466 |  if (r_ptr->flags1 & RF1_FRIEND) amt *= 3; amt /= 2;
      |                                            ^~~
bldg.c: In function 'do_cmd_bldg':
bldg.c:2168:19: warning: variable 'st_ptr' set but not used [-Wunused-but-set-variable]
 2168 |  store_info_type *st_ptr;
      |                   ^~~~~~
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o cmovie.o cmovie.c
cmovie.c: In function 'do_record_cmovie':
cmovie.c:368:40: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 's32b' {aka 'int'} [-Wformat=]
  368 |  fprintf(movfile, "# Generated by %s %ld.%ld.%ld\n",
      |                                      ~~^
      |                                        |
      |                                        long int
      |                                      %d
  369 |          game_module, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH);
      |                       ~~~~~~~~~~~~~     
      |                       |
      |                       s32b {aka int}
cmovie.c:368:44: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 's32b' {aka 'int'} [-Wformat=]
  368 |  fprintf(movfile, "# Generated by %s %ld.%ld.%ld\n",
      |                                          ~~^
      |                                            |
      |                                            long int
      |                                          %d
  369 |          game_module, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH);
      |                                      ~~~~~~~~~~~~~
      |                                      |
      |                                      s32b {aka int}
cmovie.c:368:48: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 's32b' {aka 'int'} [-Wformat=]
  368 |  fprintf(movfile, "# Generated by %s %ld.%ld.%ld\n",
      |                                              ~~^
      |                                                |
      |                                                long int
      |                                              %d
  369 |          game_module, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH);
      |                                                     ~~~~~~~~~~~~~
      |                                                     |
      |                                                     s32b {aka int}
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o irc.o irc.c
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o wizard2.o wizard2.c
wizard2.c: In function 'wiz_tweak_item':
wizard2.c:794:22: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 's32b' {aka 'int'} [-Wformat=]
  794 |  sprintf(tmp_val, "%ld", o_ptr->pval);
      |                    ~~^   ~~~~~~~~~~~
      |                      |        |
      |                      long int s32b {aka int}
      |                    %d
wizard2.c:806:22: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 's32b' {aka 'int'} [-Wformat=]
  806 |  sprintf(tmp_val, "%ld", o_ptr->pval3);
      |                    ~~^   ~~~~~~~~~~~~
      |                      |        |
      |                      long int s32b {aka int}
      |                    %d
wizard2.c:848:22: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 's32b' {aka 'int'} [-Wformat=]
  848 |  sprintf(tmp_val, "%ld", o_ptr->exp);
      |                    ~~^   ~~~~~~~~~~
      |                      |        |
      |                      long int s32b {aka int}
      |                    %d
wizard2.c: In function 'wiz_quantity_item':
wizard2.c:1171:15: warning: variable 'tmp_qnt' set but not used [-Wunused-but-set-variable]
 1171 |  int tmp_int, tmp_qnt;
      |               ^~~~~~~
wizard2.c: In function 'do_cmd_wiz_cure_all':
wizard2.c:1438:16: warning: variable 'r_ptr' set but not used [-Wunused-but-set-variable]
 1438 |  monster_race *r_ptr;
      |                ^~~~~
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o init2.o init2.c
init2.c: In function 'init_alloc':
init2.c:6284:8: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
 6284 |  s16b *tmp;
      |        ^~~
init2.c: In function 'init_angband':
init2.c:6652:36: warning: '%s' directive writing up to 1023 bytes into a region of size 1005 [-Wformat-overflow=]
 6652 |   sprintf(why, "Cannot access the '%s' file!", buf);
      |                                    ^~          ~~~
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from init2.c:5:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 27 and 1050 bytes into a destination of size 1024
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init2.c:6734:37: warning: '%s' directive writing up to 1023 bytes into a region of size 1005 [-Wformat-overflow=]
 6734 |    sprintf(why, "Cannot create the '%s' file!", buf);
      |                                     ^~          ~~~
In file included from /usr/include/stdio.h:867,
                 from h-system.h:20,
                 from h-basic.h:16,
                 from angband.h:22,
                 from init2.c:5:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 27 and 1050 bytes into a destination of size 1024
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o birth.o birth.c
In file included from /usr/include/string.h:508,
                 from /usr/include/memory.h:29,
                 from h-system.h:66,
                 from h-basic.h:16,
                 from angband.h:22,
                 from birth.c:13:
In function 'strncpy',
    inlined from 'load_savefile_names' at birth.c:3631:3:
/usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'strncpy',
    inlined from 'begin_screen' at birth.c:3852:4:
/usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o wizard1.o wizard1.c
wizard1.c: In function 'kind_info':
wizard1.c:358:19: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat=]
  358 |  sprintf(wgt, "%3ld.%ld", q_ptr->weight / 10, q_ptr->weight % 10);
      |                ~~~^       ~~~~~~~~~~~~~~~~~~
      |                   |                     |
      |                   long int              int
      |                %3d
wizard1.c:358:23: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'int' [-Wformat=]
  358 |  sprintf(wgt, "%3ld.%ld", q_ptr->weight / 10, q_ptr->weight % 10);
      |                     ~~^                       ~~~~~~~~~~~~~~~~~~
      |                       |                                     |
      |                       long int                              int
      |                     %d
wizard1.c: In function 'spoil_obj_desc':
wizard1.c:395:46: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 's32b' {aka 'int'} [-Wformat=]
  395 |  sprintf(buf, "Basic Items Spoilers for %s %ld.%ld.%ld%s",
      |                                            ~~^
      |                                              |
      |                                              long int
      |                                            %d
  396 |          game_module, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, IS_CVS);
      |                       ~~~~~~~~~~~~~           
      |                       |
      |                       s32b {aka int}
wizard1.c:395:50: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 's32b' {aka 'int'} [-Wformat=]
  395 |  sprintf(buf, "Basic Items Spoilers for %s %ld.%ld.%ld%s",
      |                                                ~~^
      |                                                  |
      |                                                  long int
      |                                                %d
  396 |          game_module, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, IS_CVS);
      |                                      ~~~~~~~~~~~~~
      |                                      |
      |                                      s32b {aka int}
wizard1.c:395:54: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 's32b' {aka 'int'} [-Wformat=]
  395 |  sprintf(buf, "Basic Items Spoilers for %s %ld.%ld.%ld%s",
      |                                                    ~~^
      |                                                      |
      |                                                      long int
      |                                                    %d
  396 |          game_module, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, IS_CVS);
      |                                                     ~~~~~~~~~~~~~
      |                                                     |
      |                                                     s32b {aka int}
wizard1.c: In function 'analyze_pval':
wizard1.c:895:33: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 's32b' {aka 'int'} [-Wformat=]
  895 |  sprintf(p_ptr->pval_desc, "%s%ld", POSITIZE(o_ptr->pval), o_ptr->pval);
      |                               ~~^                          ~~~~~~~~~~~
      |                                 |                               |
      |                                 long int                        s32b {aka int}
      |                               %d
wizard1.c: In function 'analyze_misc':
wizard1.c:1084:56: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 's32b' {aka 'int'} [-Wformat=]
 1084 |  sprintf(misc_desc, "Level %u, Rarity %u, %d.%d lbs, %ld Gold",
      |                                                      ~~^
      |                                                        |
      |                                                        long int
      |                                                      %d
 1085 |          a_ptr->level, a_ptr->rarity,
 1086 |          a_ptr->weight / 10, a_ptr->weight % 10, a_ptr->cost);
      |                                                  ~~~~~~~~~~~
      |                                                       |
      |                                                       s32b {aka int}
wizard1.c: In function 'print_header':
wizard1.c:1121:43: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 's32b' {aka 'int'} [-Wformat=]
 1121 |  sprintf(buf, "Artifact Spoilers for %s %ld.%ld.%ld%s",
      |                                         ~~^
      |                                           |
      |                                           long int
      |                                         %d
 1122 |          game_module, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, IS_CVS);
      |                       ~~~~~~~~~~~~~        
      |                       |
      |                       s32b {aka int}
wizard1.c:1121:47: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 's32b' {aka 'int'} [-Wformat=]
 1121 |  sprintf(buf, "Artifact Spoilers for %s %ld.%ld.%ld%s",
      |                                             ~~^
      |                                               |
      |                                               long int
      |                                             %d
 1122 |          game_module, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, IS_CVS);
      |                                      ~~~~~~~~~~~~~
      |                                      |
      |                                      s32b {aka int}
wizard1.c:1121:51: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 's32b' {aka 'int'} [-Wformat=]
 1121 |  sprintf(buf, "Artifact Spoilers for %s %ld.%ld.%ld%s",
      |                                                 ~~^
      |                                                   |
      |                                                   long int
      |                                                 %d
 1122 |          game_module, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, IS_CVS);
      |                                                     ~~~~~~~~~~~~~
      |                                                     |
      |                                                     s32b {aka int}
wizard1.c: In function 'spoil_mon_desc':
wizard1.c:1379:42: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 's32b' {aka 'int'} [-Wformat=]
 1379 |  sprintf(buf, "Monster Spoilers for %s %ld.%ld.%ld%s",
      |                                        ~~^
      |                                          |
      |                                          long int
      |                                        %d
 1380 |          game_module, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, IS_CVS);
      |                       ~~~~~~~~~~~~~       
      |                       |
      |                       s32b {aka int}
wizard1.c:1379:46: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 's32b' {aka 'int'} [-Wformat=]
 1379 |  sprintf(buf, "Monster Spoilers for %s %ld.%ld.%ld%s",
      |                                            ~~^
      |                                              |
      |                                              long int
      |                                            %d
 1380 |          game_module, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, IS_CVS);
      |                                      ~~~~~~~~~~~~~
      |                                      |
      |                                      s32b {aka int}
wizard1.c:1379:50: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 's32b' {aka 'int'} [-Wformat=]
 1379 |  sprintf(buf, "Monster Spoilers for %s %ld.%ld.%ld%s",
      |                                                ~~^
      |                                                  |
      |                                                  long int
      |                                                %d
 1380 |          game_module, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, IS_CVS);
      |                                                     ~~~~~~~~~~~~~
      |                                                     |
      |                                                     s32b {aka int}
wizard1.c: In function 'spoil_mon_info':
wizard1.c:1525:42: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 's32b' {aka 'int'} [-Wformat=]
 1525 |  sprintf(buf, "Monster Spoilers for %s %ld.%ld.%ld%s",
      |                                        ~~^
      |                                          |
      |                                          long int
      |                                        %d
 1526 |          game_module, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, IS_CVS);
      |                       ~~~~~~~~~~~~~       
      |                       |
      |                       s32b {aka int}
wizard1.c:1525:46: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 's32b' {aka 'int'} [-Wformat=]
 1525 |  sprintf(buf, "Monster Spoilers for %s %ld.%ld.%ld%s",
      |                                            ~~^
      |                                              |
      |                                              long int
      |                                            %d
 1526 |          game_module, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, IS_CVS);
      |                                      ~~~~~~~~~~~~~
      |                                      |
      |                                      s32b {aka int}
wizard1.c:1525:50: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 's32b' {aka 'int'} [-Wformat=]
 1525 |  sprintf(buf, "Monster Spoilers for %s %ld.%ld.%ld%s",
      |                                                ~~^
      |                                                  |
      |                                                  long int
      |                                                %d
 1526 |          game_module, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, IS_CVS);
      |                                                     ~~~~~~~~~~~~~
      |                                                     |
      |                                                     s32b {aka int}
wizard1.c: In function 'spoil_bateries':
wizard1.c:2485:10: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 's32b' {aka 'int'} [-Wformat=]
 2485 |          "|||||oy\n"
      |          ^~~~~~~~~~~
......
 2490 |          game_module, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, IS_CVS);
      |                       ~~~~~~~~~~~~~
      |                       |
      |                       s32b {aka int}
wizard1.c:2488:42: note: format string is defined here
 2488 |          "#####REssence Spoiler for %s %ld.%ld.%ld%s\n"
      |                                        ~~^
      |                                          |
      |                                          long int
      |                                        %d
wizard1.c:2485:10: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 's32b' {aka 'int'} [-Wformat=]
 2485 |          "|||||oy\n"
      |          ^~~~~~~~~~~
......
 2490 |          game_module, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, IS_CVS);
      |                                      ~~~~~~~~~~~~~
      |                                      |
      |                                      s32b {aka int}
wizard1.c:2488:46: note: format string is defined here
 2488 |          "#####REssence Spoiler for %s %ld.%ld.%ld%s\n"
      |                                            ~~^
      |                                              |
      |                                              long int
      |                                            %d
wizard1.c:2485:10: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 's32b' {aka 'int'} [-Wformat=]
 2485 |          "|||||oy\n"
      |          ^~~~~~~~~~~
......
 2490 |          game_module, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, IS_CVS);
      |                                                     ~~~~~~~~~~~~~
      |                                                     |
      |                                                     s32b {aka int}
wizard1.c:2488:50: note: format string is defined here
 2488 |          "#####REssence Spoiler for %s %ld.%ld.%ld%s\n"
      |                                                ~~^
      |                                                  |
      |                                                  long int
      |                                                %d
wizard1.c: In function 'spoil_spells':
wizard1.c:2690:56: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 's32b' {aka 'int'} [-Wformat=]
 2690 |  sprintf(buf, "Spell Spoiler (Skill Level 50) for %s %ld.%ld.%ld%s",
      |                                                      ~~^
      |                                                        |
      |                                                        long int
      |                                                      %d
 2691 |          game_module, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, IS_CVS);
      |                       ~~~~~~~~~~~~~                     
      |                       |
      |                       s32b {aka int}
wizard1.c:2690:60: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 's32b' {aka 'int'} [-Wformat=]
 2690 |  sprintf(buf, "Spell Spoiler (Skill Level 50) for %s %ld.%ld.%ld%s",
      |                                                          ~~^
      |                                                            |
      |                                                            long int
      |                                                          %d
 2691 |          game_module, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, IS_CVS);
      |                                      ~~~~~~~~~~~~~          
      |                                      |
      |                                      s32b {aka int}
wizard1.c:2690:64: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 's32b' {aka 'int'} [-Wformat=]
 2690 |  sprintf(buf, "Spell Spoiler (Skill Level 50) for %s %ld.%ld.%ld%s",
      |                                                              ~~^
      |                                                                |
      |                                                                long int
      |                                                              %d
 2691 |          game_module, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, IS_CVS);
      |                                                     ~~~~~~~~~~~~~
      |                                                     |
      |                                                     s32b {aka int}
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o init1.o init1.c
init1.c: In function 'init_player_info_txt':
init1.c:3067:38: warning: format '%ld' expects argument of type 'long int *', but argument 5 has type 's32b *' {aka 'int *'} [-Wformat=]
 3067 |    if (5 != sscanf(buf + 4, "%c:%c:%ld:%ld:%ld",
      |                                    ~~^
      |                                      |
      |                                      long int *
      |                                    %d
 3068 |                    &h, &m, &s[0], &s[1], &s[2])) return (1);
      |                            ~~~~~      
      |                            |
      |                            s32b * {aka int *}
init1.c:3067:42: warning: format '%ld' expects argument of type 'long int *', but argument 6 has type 's32b *' {aka 'int *'} [-Wformat=]
 3067 |    if (5 != sscanf(buf + 4, "%c:%c:%ld:%ld:%ld",
      |                                        ~~^
      |                                          |
      |                                          long int *
      |                                        %d
 3068 |                    &h, &m, &s[0], &s[1], &s[2])) return (1);
      |                                   ~~~~~   
      |                                   |
      |                                   s32b * {aka int *}
init1.c:3067:46: warning: format '%ld' expects argument of type 'long int *', but argument 7 has type 's32b *' {aka 'int *'} [-Wformat=]
 3067 |    if (5 != sscanf(buf + 4, "%c:%c:%ld:%ld:%ld",
      |                                            ~~^
      |                                              |
      |                                              long int *
      |                                            %d
 3068 |                    &h, &m, &s[0], &s[1], &s[2])) return (1);
      |                                          ~~~~~
      |                                          |
      |                                          s32b * {aka int *}
gcc -pipe -frecord-gcc-switches -Wall -g -O2  -I/usr/X11R6/include -Ilua -I. -DUSE_X11 -DUSE_GCU -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DDEFAULT_PATH=\"/var/lib/tome/\" -c -o main.o main.c
gcc   -o tome script.o lua_bind.o w_util.o w_player.o w_z_pack.o w_obj.o w_mnster.o w_spells.o w_quest.o w_play_c.o w_dun.o lua/lapi.o lua/lcode.o lua/ldebug.o lua/ldo.o lua/lfunc.o lua/lgc.o lua/llex.o lua/lmem.o lua/lobject.o lua/lparser.o lua/lstate.o lua/lstring.o lua/ltable.o lua/ltests.o lua/ltm.o lua/lundump.o lua/lvm.o lua/lzio.o lua/lauxlib.o lua/lbaselib.o lua/ldblib.o lua/liolib.o lua/lstrlib.o lua/tolua_lb.o lua/tolua_rg.o lua/tolua_tt.o lua/tolua_tm.o lua/tolua_gp.o lua/tolua_eh.o lua/tolua_bd.o  main-gcu.o main-x11.o main-xaw.o main-sdl.o main-dmy.o z-rand.o z-util.o z-form.o z-virt.o z-term.o z-sock.o variable.o tables.o plots.o util.o cave.o dungeon.o melee1.o melee2.o modules.o object1.o object2.o randart.o squeltch.o traps.o monster1.o monster2.o monster3.o ghost.o xtra1.o xtra2.o skills.o powers.o gods.o spells1.o spells2.o status.o files.o notes.o loadsave.o cmd1.o cmd2.o cmd3.o cmd4.o cmd5.o cmd6.o cmd7.o help.o generate.o gen_maze.o gen_evol.o wild.o levels.o store.o bldg.o cmovie.o irc.o wizard2.o init2.o birth.o wizard1.o init1.o main.o -lX11 -lncurses
/usr/bin/ld.default: util.o: in function `path_temp':
/usr/src/RPM/BUILD/tome-2.3.5/src/util.c:306: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
*** Note: In order to use the install rule, which now actually
*** handles the installation of the library dir, you need to edit
*** this makefile, going to the top and making sure LIBDIR suits
*** your desired install dir properly. The LIBRARY_DIR you used
*** to set in config.h is now ignored and obsolete with respect
*** to this makefile. Note that if you edit this makefile, you may
*** need to recompile so all the files that reference those defines
*** notice the changes.
make: Leaving directory '/usr/src/RPM/BUILD/tome-2.3.5/src'
+ exit 0
Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.65838
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ /bin/chmod -Rf u+rwX -- /usr/src/tmp/tome-buildroot
+ :
+ /bin/rm -rf -- /usr/src/tmp/tome-buildroot
+ cd tome-2.3.5
+ cd src
+ make -f makefile.std install DESTDIR=/usr/src/tmp/tome-buildroot BINDIR=/usr/bin LIBDIR=/var/lib/tome/
make: Entering directory '/usr/src/RPM/BUILD/tome-2.3.5/src'
*** Note: In order to use the install rule, which now actually
*** handles the installation of the library dir, you need to edit
*** this makefile, going to the top and making sure LIBDIR suits
*** your desired install dir properly. The LIBRARY_DIR you used
*** to set in config.h is now ignored and obsolete with respect
*** to this makefile. Note that if you edit this makefile, you may
*** need to recompile so all the files that reference those defines
*** notice the changes.
[ -d /usr/src/tmp/tome-buildroot/var/lib/tome/ ] || mkdir -p /usr/src/tmp/tome-buildroot/var/lib/tome/
[ -d /usr/src/tmp/tome-buildroot/usr/bin ] || mkdir -p /usr/src/tmp/tome-buildroot/usr/bin
cp -r ../lib/* /usr/src/tmp/tome-buildroot/var/lib/tome/
cp -f tome /usr/src/tmp/tome-buildroot/usr/bin/tome
make: Leaving directory '/usr/src/RPM/BUILD/tome-2.3.5/src'
+ find /usr/src/tmp/tome-buildroot -name delete.me -exec rm -f '{}' ';'
+ touch /usr/src/tmp/tome-buildroot/var/lib/tome//apex/scores.raw
+ rm -f /usr/src/tmp/tome-buildroot/var/lib/tome/xtra/font/VeraMono.ttf
+ /usr/lib/rpm/brp-alt
Cleaning files in /usr/src/tmp/tome-buildroot (auto)
removed './var/lib/tome/scpt/.cvsignore'
removed './var/lib/tome/plot/.gitignore'
removed './var/lib/tome/patch/.cvsignore'
removed './var/lib/tome/mods/.cvsignore'
removed './var/lib/tome/data/.cvsignore'
removed './var/lib/tome/apex/.cvsignore'
Verifying and fixing files in /usr/src/tmp/tome-buildroot (binconfig,pkgconfig,libtool,desktop)
Checking contents of files in /usr/src/tmp/tome-buildroot/ (default)
Compressing files in /usr/src/tmp/tome-buildroot (auto)
Adjusting library links in /usr/src/tmp/tome-buildroot
./var/lib:
Verifying ELF objects in /usr/src/tmp/tome-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal)
Hardlinking identical .pyc and .pyo files
Processing files: tome-2.3.5-alt3
Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.26768
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ cd tome-2.3.5
+ DOCDIR=/usr/src/tmp/tome-buildroot/usr/share/doc/tome-2.3.5
+ export DOCDIR
+ rm -rf /usr/src/tmp/tome-buildroot/usr/share/doc/tome-2.3.5
+ /bin/mkdir -p /usr/src/tmp/tome-buildroot/usr/share/doc/tome-2.3.5
+ cp -prL changes.txt /usr/src/tmp/tome-buildroot/usr/share/doc/tome-2.3.5
+ chmod -R go-w /usr/src/tmp/tome-buildroot/usr/share/doc/tome-2.3.5
+ chmod -R a+rX /usr/src/tmp/tome-buildroot/usr/share/doc/tome-2.3.5
+ exit 0
Finding Provides (using /usr/lib/rpm/find-provides)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.Kofiko
find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,shell)
Finding Requires (using /usr/lib/rpm/find-requires)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.sNo2gr
find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,rpmlib,shebang,shell,static,symlinks,systemd-services)
Finding Requires(preun) (using /usr/lib/rpm/find-scriptlet-requires)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.UpS5aq
find-scriptlet-requires: FINDPACKAGE-COMMANDS: rm
Requires: /lib64/ld-linux-x86-64.so.2, libX11.so.6()(64bit) >= set:oiqbq4ctaUWaZe5RgtHRcmQ2Bn2k1sWcBZn9vxksL9QD3bafe4dFEktu6duJqFP594Ic7c2IkQR65kzu62aDv6HBU9z7847bRod33uZ8UAnsPevah21, libc.so.6(GLIBC_2.11)(64bit), libc.so.6(GLIBC_2.14)(64bit), libc.so.6(GLIBC_2.15)(64bit), libc.so.6(GLIBC_2.2.5)(64bit), libc.so.6(GLIBC_2.3)(64bit), libc.so.6(GLIBC_2.3.4)(64bit), libc.so.6(GLIBC_2.4)(64bit), libc.so.6(GLIBC_2.7)(64bit), libncurses.so.5()(64bit) >= set:mhB3guFsYIG6EAO3XMM7P2AiPXuG2UltJJgYeRGFOvwmwjE98AT8mLSwo1Va5, libtinfo.so.5()(64bit) >= set:liZKbUTimJ79hjFq9r4rL5, rtld(GNU_HASH)
Requires(interp): /bin/sh
Requires(rpmlib): rpmlib(SetVersions)
Requires(preun): /bin/sh, coreutils
Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.m1aPVo
Creating tome-debuginfo package
Processing files: tome-debuginfo-2.3.5-alt3
Finding Provides (using /usr/lib/rpm/find-provides)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.7v9zjp
find-provides: running scripts (debuginfo)
Finding Requires (using /usr/lib/rpm/find-requires)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.YJmUDo
find-requires: running scripts (debuginfo)
Requires: tome = 2.3.5-alt3, /usr/lib/debug/lib64/ld-linux-x86-64.so.2.debug, debug64(libX11.so.6), debug64(libc.so.6), debug64(libncurses.so.5), debug64(libtinfo.so.5)
Wrote: /usr/src/RPM/RPMS/x86_64/tome-2.3.5-alt3.x86_64.rpm
Wrote: /usr/src/RPM/RPMS/x86_64/tome-debuginfo-2.3.5-alt3.x86_64.rpm
57.53user 3.26system 1:03.91elapsed 95%CPU (0avgtext+0avgdata 97344maxresident)k
0inputs+0outputs (0major+1283193minor)pagefaults 0swaps
/.out/tome-2.3.5-alt3.x86_64.rpm: bad symbols in the license tag: /
/.out/tome-debuginfo-2.3.5-alt3.x86_64.rpm: bad symbols in the license tag: /
62.57user 6.79system 1:12.43elapsed 95%CPU (0avgtext+0avgdata 109928maxresident)k
0inputs+0outputs (0major+1619496minor)pagefaults 0swaps