Diff of the two buildlogs: -- --- b1/build.log 2023-04-27 14:21:16.961952739 +0000 +++ b2/build.log 2023-04-27 14:27:22.841724019 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Thu Apr 27 02:17:21 -12 2023 -I: pbuilder-time-stamp: 1682605041 +I: Current time: Thu May 30 10:44:19 +14 2024 +I: pbuilder-time-stamp: 1717015459 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bookworm-reproducible-base.tgz] I: copying local configuration @@ -16,7 +16,7 @@ I: copying [./nethack_3.6.6.orig.tar.gz] I: copying [./nethack_3.6.6-3.debian.tar.xz] I: Extracting source -gpgv: Signature made Mon Aug 22 22:15:48 2022 -12 +gpgv: Signature made Wed Aug 24 00:15:48 2022 +14 gpgv: using RSA key ACF3D088EF32EDEF6A1A835FD9AD14B9513B51E4 gpgv: issuer "apo@debian.org" gpgv: Can't check signature: No public key @@ -37,135 +37,167 @@ dpkg-source: info: applying warn_unused_result.patch I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/2125879/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/1433531/tmp/hooks/D01_modify_environment starting +debug: Running on ionos15-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 May 30 10:44 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/1433531/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/1433531/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=15' - DISTRIBUTION='bookworm' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="15" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.2.15(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=16' + DIRSTACK=() + DISTRIBUTION=bookworm + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='b193090535db4c3fa82369477ba09f26' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='2125879' - PS1='# ' - PS2='> ' + INVOCATION_ID=76e216d600dc417092e0b8bede8db6f6 + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=1433531 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.rq4KNQK4/pbuilderrc_cWHo --distribution bookworm --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.rq4KNQK4/b1 --logfile b1/build.log nethack_3.6.6-3.dsc' - SUDO_GID='111' - SUDO_UID='106' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://78.137.99.97:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.rq4KNQK4/pbuilderrc_Kc4A --distribution bookworm --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.rq4KNQK4/b2 --logfile b2/build.log --extrapackages usrmerge nethack_3.6.6-3.dsc' + SUDO_GID=111 + SUDO_UID=106 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://85.184.249.68:3128 I: uname -a - Linux ionos11-amd64 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-0.deb11.6-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.15-1~bpo11+1 (2023-03-16) x86_64 GNU/Linux I: ls -l /bin total 5632 - -rwxr-xr-x 1 root root 1265648 Apr 23 09:23 bash - -rwxr-xr-x 3 root root 39224 Sep 18 2022 bunzip2 - -rwxr-xr-x 3 root root 39224 Sep 18 2022 bzcat - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2225 Sep 18 2022 bzdiff - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4893 Nov 27 2021 bzexe - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3775 Sep 18 2022 bzgrep - -rwxr-xr-x 3 root root 39224 Sep 18 2022 bzip2 - -rwxr-xr-x 1 root root 14568 Sep 18 2022 bzip2recover - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Sep 18 2022 bzmore - -rwxr-xr-x 1 root root 44016 Sep 20 2022 cat - -rwxr-xr-x 1 root root 68656 Sep 20 2022 chgrp - -rwxr-xr-x 1 root root 64496 Sep 20 2022 chmod - -rwxr-xr-x 1 root root 72752 Sep 20 2022 chown - -rwxr-xr-x 1 root root 151152 Sep 20 2022 cp - -rwxr-xr-x 1 root root 125640 Jan 5 01:20 dash - -rwxr-xr-x 1 root root 121904 Sep 20 2022 date - -rwxr-xr-x 1 root root 89240 Sep 20 2022 dd - -rwxr-xr-x 1 root root 102200 Sep 20 2022 df - -rwxr-xr-x 1 root root 151344 Sep 20 2022 dir - -rwxr-xr-x 1 root root 88656 Mar 22 22:02 dmesg - lrwxrwxrwx 1 root root 8 Dec 19 01:33 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Dec 19 01:33 domainname -> hostname - -rwxr-xr-x 1 root root 43856 Sep 20 2022 echo - -rwxr-xr-x 1 root root 41 Jan 24 02:43 egrep - -rwxr-xr-x 1 root root 35664 Sep 20 2022 false - -rwxr-xr-x 1 root root 41 Jan 24 02:43 fgrep - -rwxr-xr-x 1 root root 85600 Mar 22 22:02 findmnt - -rwsr-xr-x 1 root root 35128 Mar 22 20:35 fusermount - -rwxr-xr-x 1 root root 203152 Jan 24 02:43 grep - -rwxr-xr-x 2 root root 2346 Apr 9 2022 gunzip - -rwxr-xr-x 1 root root 6447 Apr 9 2022 gzexe - -rwxr-xr-x 1 root root 98136 Apr 9 2022 gzip - -rwxr-xr-x 1 root root 22680 Dec 19 01:33 hostname - -rwxr-xr-x 1 root root 72824 Sep 20 2022 ln - -rwxr-xr-x 1 root root 53024 Mar 23 00:40 login - -rwxr-xr-x 1 root root 151344 Sep 20 2022 ls - -rwxr-xr-x 1 root root 207168 Mar 22 22:02 lsblk - -rwxr-xr-x 1 root root 97552 Sep 20 2022 mkdir - -rwxr-xr-x 1 root root 72912 Sep 20 2022 mknod - -rwxr-xr-x 1 root root 43952 Sep 20 2022 mktemp - -rwxr-xr-x 1 root root 59712 Mar 22 22:02 more - -rwsr-xr-x 1 root root 59704 Mar 22 22:02 mount - -rwxr-xr-x 1 root root 18744 Mar 22 22:02 mountpoint - -rwxr-xr-x 1 root root 142968 Sep 20 2022 mv - lrwxrwxrwx 1 root root 8 Dec 19 01:33 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Apr 2 18:25 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 43952 Sep 20 2022 pwd - lrwxrwxrwx 1 root root 4 Apr 23 09:23 rbash -> bash - -rwxr-xr-x 1 root root 52112 Sep 20 2022 readlink - -rwxr-xr-x 1 root root 72752 Sep 20 2022 rm - -rwxr-xr-x 1 root root 56240 Sep 20 2022 rmdir - -rwxr-xr-x 1 root root 27560 Nov 2 04:31 run-parts - -rwxr-xr-x 1 root root 126424 Jan 5 07:55 sed - lrwxrwxrwx 1 root root 4 Jan 5 01:20 sh -> dash - -rwxr-xr-x 1 root root 43888 Sep 20 2022 sleep - -rwxr-xr-x 1 root root 85008 Sep 20 2022 stty - -rwsr-xr-x 1 root root 72000 Mar 22 22:02 su - -rwxr-xr-x 1 root root 39824 Sep 20 2022 sync - -rwxr-xr-x 1 root root 531984 Apr 6 02:25 tar - -rwxr-xr-x 1 root root 14520 Nov 2 04:31 tempfile - -rwxr-xr-x 1 root root 109616 Sep 20 2022 touch - -rwxr-xr-x 1 root root 35664 Sep 20 2022 true - -rwxr-xr-x 1 root root 14568 Mar 22 20:35 ulockmgr_server - -rwsr-xr-x 1 root root 35128 Mar 22 22:02 umount - -rwxr-xr-x 1 root root 43888 Sep 20 2022 uname - -rwxr-xr-x 2 root root 2346 Apr 9 2022 uncompress - -rwxr-xr-x 1 root root 151344 Sep 20 2022 vdir - -rwxr-xr-x 1 root root 72024 Mar 22 22:02 wdctl - lrwxrwxrwx 1 root root 8 Dec 19 01:33 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Apr 9 2022 zcat - -rwxr-xr-x 1 root root 1678 Apr 9 2022 zcmp - -rwxr-xr-x 1 root root 6460 Apr 9 2022 zdiff - -rwxr-xr-x 1 root root 29 Apr 9 2022 zegrep - -rwxr-xr-x 1 root root 29 Apr 9 2022 zfgrep - -rwxr-xr-x 1 root root 2081 Apr 9 2022 zforce - -rwxr-xr-x 1 root root 8103 Apr 9 2022 zgrep - -rwxr-xr-x 1 root root 2206 Apr 9 2022 zless - -rwxr-xr-x 1 root root 1842 Apr 9 2022 zmore - -rwxr-xr-x 1 root root 4577 Apr 9 2022 znew -I: user script /srv/workspace/pbuilder/2125879/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1265648 Apr 24 2023 bash + -rwxr-xr-x 3 root root 39224 Sep 19 2022 bunzip2 + -rwxr-xr-x 3 root root 39224 Sep 19 2022 bzcat + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2225 Sep 19 2022 bzdiff + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4893 Nov 28 2021 bzexe + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3775 Sep 19 2022 bzgrep + -rwxr-xr-x 3 root root 39224 Sep 19 2022 bzip2 + -rwxr-xr-x 1 root root 14568 Sep 19 2022 bzip2recover + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Sep 19 2022 bzmore + -rwxr-xr-x 1 root root 44016 Sep 21 2022 cat + -rwxr-xr-x 1 root root 68656 Sep 21 2022 chgrp + -rwxr-xr-x 1 root root 64496 Sep 21 2022 chmod + -rwxr-xr-x 1 root root 72752 Sep 21 2022 chown + -rwxr-xr-x 1 root root 151152 Sep 21 2022 cp + -rwxr-xr-x 1 root root 125640 Jan 6 2023 dash + -rwxr-xr-x 1 root root 121904 Sep 21 2022 date + -rwxr-xr-x 1 root root 89240 Sep 21 2022 dd + -rwxr-xr-x 1 root root 102200 Sep 21 2022 df + -rwxr-xr-x 1 root root 151344 Sep 21 2022 dir + -rwxr-xr-x 1 root root 88656 Mar 24 2023 dmesg + lrwxrwxrwx 1 root root 8 Dec 20 2022 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Dec 20 2022 domainname -> hostname + -rwxr-xr-x 1 root root 43856 Sep 21 2022 echo + -rwxr-xr-x 1 root root 41 Jan 25 2023 egrep + -rwxr-xr-x 1 root root 35664 Sep 21 2022 false + -rwxr-xr-x 1 root root 41 Jan 25 2023 fgrep + -rwxr-xr-x 1 root root 85600 Mar 24 2023 findmnt + -rwsr-xr-x 1 root root 35128 Mar 23 2023 fusermount + -rwxr-xr-x 1 root root 203152 Jan 25 2023 grep + -rwxr-xr-x 2 root root 2346 Apr 10 2022 gunzip + -rwxr-xr-x 1 root root 6447 Apr 10 2022 gzexe + -rwxr-xr-x 1 root root 98136 Apr 10 2022 gzip + -rwxr-xr-x 1 root root 22680 Dec 20 2022 hostname + -rwxr-xr-x 1 root root 72824 Sep 21 2022 ln + -rwxr-xr-x 1 root root 53024 Mar 24 2023 login + -rwxr-xr-x 1 root root 151344 Sep 21 2022 ls + -rwxr-xr-x 1 root root 207168 Mar 24 2023 lsblk + -rwxr-xr-x 1 root root 97552 Sep 21 2022 mkdir + -rwxr-xr-x 1 root root 72912 Sep 21 2022 mknod + -rwxr-xr-x 1 root root 43952 Sep 21 2022 mktemp + -rwxr-xr-x 1 root root 59712 Mar 24 2023 more + -rwsr-xr-x 1 root root 59704 Mar 24 2023 mount + -rwxr-xr-x 1 root root 18744 Mar 24 2023 mountpoint + -rwxr-xr-x 1 root root 142968 Sep 21 2022 mv + lrwxrwxrwx 1 root root 8 Dec 20 2022 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Apr 3 2023 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 43952 Sep 21 2022 pwd + lrwxrwxrwx 1 root root 4 Apr 24 2023 rbash -> bash + -rwxr-xr-x 1 root root 52112 Sep 21 2022 readlink + -rwxr-xr-x 1 root root 72752 Sep 21 2022 rm + -rwxr-xr-x 1 root root 56240 Sep 21 2022 rmdir + -rwxr-xr-x 1 root root 27560 Nov 3 2022 run-parts + -rwxr-xr-x 1 root root 126424 Jan 6 2023 sed + lrwxrwxrwx 1 root root 9 May 30 10:44 sh -> /bin/bash + -rwxr-xr-x 1 root root 43888 Sep 21 2022 sleep + -rwxr-xr-x 1 root root 85008 Sep 21 2022 stty + -rwsr-xr-x 1 root root 72000 Mar 24 2023 su + -rwxr-xr-x 1 root root 39824 Sep 21 2022 sync + -rwxr-xr-x 1 root root 531984 Apr 7 2023 tar + -rwxr-xr-x 1 root root 14520 Nov 3 2022 tempfile + -rwxr-xr-x 1 root root 109616 Sep 21 2022 touch + -rwxr-xr-x 1 root root 35664 Sep 21 2022 true + -rwxr-xr-x 1 root root 14568 Mar 23 2023 ulockmgr_server + -rwsr-xr-x 1 root root 35128 Mar 24 2023 umount + -rwxr-xr-x 1 root root 43888 Sep 21 2022 uname + -rwxr-xr-x 2 root root 2346 Apr 10 2022 uncompress + -rwxr-xr-x 1 root root 151344 Sep 21 2022 vdir + -rwxr-xr-x 1 root root 72024 Mar 24 2023 wdctl + lrwxrwxrwx 1 root root 8 Dec 20 2022 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1984 Apr 10 2022 zcat + -rwxr-xr-x 1 root root 1678 Apr 10 2022 zcmp + -rwxr-xr-x 1 root root 6460 Apr 10 2022 zdiff + -rwxr-xr-x 1 root root 29 Apr 10 2022 zegrep + -rwxr-xr-x 1 root root 29 Apr 10 2022 zfgrep + -rwxr-xr-x 1 root root 2081 Apr 10 2022 zforce + -rwxr-xr-x 1 root root 8103 Apr 10 2022 zgrep + -rwxr-xr-x 1 root root 2206 Apr 10 2022 zless + -rwxr-xr-x 1 root root 1842 Apr 10 2022 zmore + -rwxr-xr-x 1 root root 4577 Apr 10 2022 znew +I: user script /srv/workspace/pbuilder/1433531/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -464,7 +496,7 @@ Get: 229 http://deb.debian.org/debian bookworm/main amd64 qtmultimedia5-dev amd64 5.15.8-2 [45.7 kB] Get: 230 http://deb.debian.org/debian bookworm/main amd64 xfonts-encodings all 1:1.0.4-2.2 [577 kB] Get: 231 http://deb.debian.org/debian bookworm/main amd64 xfonts-utils amd64 1:7.7+6 [93.0 kB] -Fetched 114 MB in 2s (63.5 MB/s) +Fetched 114 MB in 2s (73.5 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package m4. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19596 files and directories currently installed.) @@ -1413,10 +1445,17 @@ Reading package lists... Building dependency tree... Reading state information... +usrmerge is already the newest version (35). fakeroot is already the newest version (1.31-1.2). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/nethack-3.6.6/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../nethack_3.6.6-3_source.changes +I: user script /srv/workspace/pbuilder/1433531/tmp/hooks/A99_set_merged_usr starting +Re-configuring usrmerge... +removed '/etc/unsupported-skip-usrmerge-conversion' +The system has been successfully converted. +I: user script /srv/workspace/pbuilder/1433531/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/nethack-3.6.6/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../nethack_3.6.6-3_source.changes dpkg-buildpackage: info: source package nethack dpkg-buildpackage: info: source version 3.6.6-3 dpkg-buildpackage: info: source distribution unstable @@ -1478,48 +1517,205 @@ /usr/bin/make LFLAGS='-g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now' CFLAGS='-Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS' WINSRC='$(WINTTYSRC) $(WINCURSESSRC)' WINOBJ='$(WINTTYOBJ) $(WINCURSESOBJ)' WINLIB='-lcurses' LINK='$(CC)' GAME='nethack-console' -C src 'nethack-console' make[2]: Entering directory '/build/nethack-3.6.6/src' cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o alloc.o alloc.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o dlb.o dlb.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o isaac64.o isaac64.c make[3]: Entering directory '/build/nethack-3.6.6/util' ./makedefs -o +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o dlb.o dlb.c make[3]: Leaving directory '/build/nethack-3.6.6/util' +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o isaac64.o isaac64.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o unixres.o ../sys/unix/unixres.c make[3]: Entering directory '/build/nethack-3.6.6/util' ./makedefs -p make[3]: Leaving directory '/build/nethack-3.6.6/util' touch ../src/hack.h-t +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o weapon.o weapon.c +make[3]: Entering directory '/build/nethack-3.6.6/util' +./makedefs -z +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o were.o were.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o wield.o wield.c +make[3]: Leaving directory '/build/nethack-3.6.6/util' +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o windows.o windows.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o wizard.o wizard.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o worm.o worm.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o worn.o worn.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o write.o write.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o zap.o zap.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o posixregex.o ../sys/share/posixregex.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o ioctl.o ../sys/share/ioctl.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o unixmain.o ../sys/unix/unixmain.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o unixtty.o ../sys/share/unixtty.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o unixunix.o ../sys/unix/unixunix.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o getline.o ../win/tty/getline.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o termcap.o ../win/tty/termcap.c +write.c: In function 'dowrite': +write.c:161:16: warning: '__builtin_strncpy' output truncated before terminating nul copying 7 bytes from a string of the same length [-Wstringop-truncation] + 161 | (void) strncpy(bp, " armor ", 7); /* won't add '\0' */ + | ^ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o topl.o ../win/tty/topl.c +../sys/share/unixtty.c: In function 'linux_mapon': +../sys/share/unixtty.c:426:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] + 426 | write(1, "\033(B", 3); + | ^~~~~~~~~~~~~~~~~~~~~ +../sys/share/unixtty.c: In function 'linux_mapoff': +../sys/share/unixtty.c:436:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] + 436 | write(1, "\033(U", 3); + | ^~~~~~~~~~~~~~~~~~~~~ +../sys/unix/unixmain.c: In function 'chdirx': +../sys/unix/unixmain.c:490:16: warning: ignoring return value of 'setgid' declared with attribute 'warn_unused_result' [-Wunused-result] + 490 | (void) setgid(getgid()); + | ^~~~~~~~~~~~~~~~ +../sys/unix/unixmain.c:491:16: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] + 491 | (void) setuid(getuid()); /* Ron Wessels */ + | ^~~~~~~~~~~~~~~~ +../sys/unix/unixmain.c: In function 'sys_random_seed': +../sys/unix/unixmain.c:789:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] + 789 | fread(&seed, sizeof (long), 1, fptr); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../sys/unix/unixunix.c: In function 'child': +../sys/unix/unixunix.c:307:16: warning: ignoring return value of 'setgid' declared with attribute 'warn_unused_result' [-Wunused-result] + 307 | (void) setgid(getgid()); + | ^~~~~~~~~~~~~~~~ +../sys/unix/unixunix.c:308:16: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] + 308 | (void) setuid(getuid()); + | ^~~~~~~~~~~~~~~~ +../sys/unix/unixunix.c:310:16: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] + 310 | (void) chdir(getenv("HOME")); + | ^~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o wintty.o ../win/tty/wintty.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cursmain.o ../win/curses/cursmain.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o curswins.o ../win/curses/curswins.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cursmisc.o ../win/curses/cursmisc.c +../sys/unix/unixmain.c: In function 'main': +../sys/unix/unixmain.c:244:20: warning: '__builtin___strncat_chk' output may be truncated copying between 0 and 30 bytes from a string of length 31 [-Wstringop-truncation] + 244 | (void) strncat(strcat(plname, "-"), pl_character, + | ^ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cursdial.o ../win/curses/cursdial.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cursstat.o ../win/curses/cursstat.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cursinit.o ../win/curses/cursinit.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cursmesg.o ../win/curses/cursmesg.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cursinvt.o ../win/curses/cursinvt.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o allmain.o allmain.c +../win/curses/cursstat.c: In function 'curs_HPbar': +../win/curses/cursstat.c:925:12: warning: '__builtin___strncpy_chk' specified bound depends on the length of the source argument [-Wstringop-truncation] + 925 | (void) strncpy(bar, text, bar_len); + | ^ +../win/curses/cursstat.c:923:30: note: length computed here + 923 | if (bar_len > (k = (int) strlen(text))) /* 26 for vertical status */ + | ^~~~~~~~~~~~ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o apply.o apply.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o artifact.o artifact.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o attrib.o attrib.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o ball.o ball.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o bones.o bones.c -make[3]: Entering directory '/build/nethack-3.6.6/util' -./makedefs -z cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o botl.o botl.c -make[3]: Leaving directory '/build/nethack-3.6.6/util' cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cmd.o cmd.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o dbridge.o dbridge.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o decl.o decl.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o detect.o detect.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o dig.o dig.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o display.o display.c botl.c: In function 'parse_status_hl2': botl.c:2069:12: warning: the comparison will always evaluate as 'true' for the pointer operand in 's + (sizetype)((long unsigned int)sidx * 128)' must not be NULL [-Waddress] 2069 | while (s[sidx]) { | ^ +weapon.c: In function 'enhance_weapon_skill': botl.c: In function 'parse_condition': +weapon.c:1261:47: warning: '%s' directive writing up to 255 bytes into a region of size between 249 and 253 [-Wformat-overflow=] + 1261 | Sprintf(buf, " %s%s\t[%s]", prefix, P_NAME(i), + | ^~ + 1262 | sklnambuf); + | ~~~~~~~~~ +In file included from /usr/include/stdio.h:906, + from ../include/global.h:9, + from ../include/config.h:588, + from ../include/hack.h:10, + from weapon.c:11: +In function 'sprintf', + inlined from 'enhance_weapon_skill' at weapon.c:1261:25: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 5 or more bytes (assuming 264) into a destination of size 256 + 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 31 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 32 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +weapon.c: In function 'enhance_weapon_skill': botl.c:2488:11: warning: the comparison will always evaluate as 'true' for the pointer operand in 's + (sizetype)((long unsigned int)sidx * 128)' must not be NULL [-Waddress] 2488 | while(s[sidx]) { | ^ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o do.o do.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o do_name.o do_name.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o do_wear.o do_wear.c +weapon.c:1258:49: warning: '%s' directive writing up to 255 bytes into a region of size between 248 and 252 [-Wformat-overflow=] + 1258 | Sprintf(buf, " %s %-*s [%s]", prefix, longest, + | ^~ + 1259 | P_NAME(i), sklnambuf); + | ~~~~~~~~~ +In function 'sprintf', + inlined from 'enhance_weapon_skill' at weapon.c:1258:25: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 6 or more bytes (assuming 265) into a destination of size 256 + 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 31 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 32 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +weapon.c: In function 'enhance_weapon_skill': +weapon.c:1253:46: warning: '%s' directive writing up to 255 bytes into a region of size between 250 and 254 [-Wformat-overflow=] + 1253 | Sprintf(buf, " %s%s\t%s\t%5d(%4d)", prefix, P_NAME(i), + | ^~ + 1254 | sklnambuf, P_ADVANCE(i), + | ~~~~~~~~~ +weapon.c:1253:38: note: directive argument in the range [0, 65535] + 1253 | Sprintf(buf, " %s%s\t%s\t%5d(%4d)", prefix, P_NAME(i), + | ^~~~~~~~~~~~~~~~~~~~~ +weapon.c:1253:38: note: directive argument in the range [-325120, 327680] +In function 'sprintf', + inlined from 'enhance_weapon_skill' at weapon.c:1253:25: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 15 or more bytes (assuming 277) into a destination of size 256 + 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 31 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 32 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +weapon.c: In function 'enhance_weapon_skill': +weapon.c:1249:47: warning: '%-12s' directive writing between 12 and 255 bytes into a region of size between 250 and 254 [-Wformat-overflow=] + 1249 | Sprintf(buf, " %s%-*s %-12s %5d(%4d)", prefix, + | ^~~~~ + 1250 | longest, P_NAME(i), sklnambuf, P_ADVANCE(i), + | ~~~~~~~~~ +weapon.c:1249:38: note: directive argument in the range [0, 65535] + 1249 | Sprintf(buf, " %s%-*s %-12s %5d(%4d)", prefix, + | ^~~~~~~~~~~~~~~~~~~~~~~~ +weapon.c:1249:38: note: directive argument in the range [-325120, 327680] +In function 'sprintf', + inlined from 'enhance_weapon_skill' at weapon.c:1249:25: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 27 or more bytes (assuming 277) into a destination of size 256 + 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 31 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 32 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +../win/curses/cursinit.c: In function 'curses_choose_character': +../win/curses/cursinit.c:455:26: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] + 455 | sprintf(choice, "%s%c", tmpchoice, '\033'); + | ^ +In file included from /usr/include/stdio.h:906, + from /usr/include/curses.h:232, + from ../win/curses/cursinit.c:6: +In function 'sprintf', + inlined from 'curses_choose_character' at ../win/curses/cursinit.c:455:5: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 2 and 129 bytes into a destination of size 128 + 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 31 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 32 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o decl.o decl.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o detect.o detect.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o dig.o dig.c cmd.c: In function 'attributes_enlightenment': cmd.c:2727:20: warning: '__builtin_strncpy' output truncated before terminating nul copying 12 bytes from a string of the same length [-Wstringop-truncation] 2727 | (void) strncpy(buf, " if not for ", 12); | ^ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o dog.o dog.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o display.o display.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o do.o do.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o do_name.o do_name.c botl.c: In function 'status_hilite_linestr_gather_conditions': botl.c:2793:48: warning: '%s' directive writing up to 255 bytes into a region of size 245 [-Wformat-overflow=] 2793 | Sprintf(condbuf, "condition/%s/%s", @@ -1540,8 +1736,22 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o do_wear.o do_wear.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o dog.o dog.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o dogmove.o dogmove.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o dokick.o dokick.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o dothrow.o dothrow.c +dogmove.c: In function 'droppables': +dogmove.c:120:1: warning: function may return address of local variable [-Wreturn-local-addr] + 120 | } + | ^ +dogmove.c:29:28: note: declared here + 29 | struct obj *obj, *wep, dummy, *pickaxe, *unihorn, *key; + | ^~~~~ +dogmove.c:29:28: note: declared here +dogmove.c:29:28: note: declared here +dogmove.c:29:28: note: declared here +dogmove.c:29:28: note: declared here do_name.c: In function 'getpos_menu': do_name.c:604:37: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] 604 | Sprintf(fullbuf, "%s%s%s", firstmatch, @@ -1560,7 +1770,6 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o dothrow.o dothrow.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o drawing.o drawing.c do_name.c: In function 'getpos': do_name.c:190:31: warning: '%s' directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] @@ -1590,19 +1799,24 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -dogmove.c: In function 'droppables': -dogmove.c:120:1: warning: function may return address of local variable [-Wreturn-local-addr] - 120 | } - | ^ -dogmove.c:29:28: note: declared here - 29 | struct obj *obj, *wep, dummy, *pickaxe, *unihorn, *key; - | ^~~~~ -dogmove.c:29:28: note: declared here -dogmove.c:29:28: note: declared here -dogmove.c:29:28: note: declared here -dogmove.c:29:28: note: declared here cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o dungeon.o dungeon.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o eat.o eat.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o end.o end.c +botl.c: In function 'status_hilite_menu_add': +botl.c:3385:38: warning: ' or ' directive writing 4 bytes into a region of size between 1 and 80 [-Wformat-overflow=] + 3385 | Sprintf(obuf, "%s or %s", + | ^~~~ +In function 'sprintf', + inlined from 'status_hilite_menu_add' at botl.c:3385:21: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 5 and 163 bytes into a destination of size 80 + 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 31 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 32 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o engrave.o engrave.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o exper.o exper.c cmd.c: In function 'enlght_halfdmg': cmd.c:1653:24: warning: '%s' directive writing up to 255 bytes into a region of size 247 [-Wformat-overflow=] 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); @@ -1636,61 +1850,90 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o end.o end.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o engrave.o engrave.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o explode.o explode.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o extralev.o extralev.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o files.o files.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o fountain.o fountain.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o hack.o hack.c cmd.c: In function 'background_enlightenment.constprop': -cmd.c:1653:24: warning: '%s' directive writing up to 255 bytes into a region of size between 246 and 247 [-Wformat-overflow=] - 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); - | ^~ +explode.c: In function 'explode': +explode.c:539:67: warning: '%s' directive writing up to 255 bytes into a region of size 236 [-Wformat-overflow=] + 539 | Sprintf(killer.name, "caught %sself in %s own %s", uhim(), + | ^~ +In file included from /usr/include/stdio.h:906, + from ../include/global.h:9, + from ../include/config.h:588, + from ../include/hack.h:10, + from explode.c:5: In function 'sprintf', - inlined from 'enlght_line' at cmd.c:1653:5, - inlined from 'background_enlightenment.constprop' at cmd.c:1863:9: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 11 and 267 bytes into a destination of size 256 + inlined from 'explode' at explode.c:539:21: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 21 or more bytes (assuming 276) into a destination of size 256 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -botl.c: In function 'status_hilite_menu_add': -botl.c:3385:38: warning: ' or ' directive writing 4 bytes into a region of size between 1 and 80 [-Wformat-overflow=] - 3385 | Sprintf(obuf, "%s or %s", - | ^~~~ +cmd.c:1653:24: warning: '%s' directive writing up to 255 bytes into a region of size between 246 and 247 [-Wformat-overflow=] + 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); + | ^~ In function 'sprintf', - inlined from 'status_hilite_menu_add' at botl.c:3385:21: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 5 and 163 bytes into a destination of size 80 + inlined from 'enlght_line' at cmd.c:1653:5, + inlined from 'background_enlightenment.constprop' at cmd.c:1863:9: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 11 and 267 bytes into a destination of size 256 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o exper.o exper.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o explode.o explode.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o extralev.o extralev.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o files.o files.c -explode.c: In function 'explode': -explode.c:539:67: warning: '%s' directive writing up to 255 bytes into a region of size 236 [-Wformat-overflow=] - 539 | Sprintf(killer.name, "caught %sself in %s own %s", uhim(), - | ^~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o hacklib.o hacklib.c +engrave.c: In function 'doengrave': +engrave.c:1154:12: warning: '__builtin___strncat_chk' output may be truncated copying between 0 and 255 bytes from a string of length 255 [-Wstringop-truncation] + 1154 | (void) strncat(buf, ebuf, BUFSZ - (int) strlen(buf) - 1); + | ^ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o invent.o invent.c +files.c: In function 'save_savefile_name': +files.c:982:12: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] + 982 | (void) write(fd, (genericptr_t) SAVEF, sizeof(SAVEF)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +files.c: In function 'docompress_file': +files.c:1400:16: warning: ignoring return value of 'setgid' declared with attribute 'warn_unused_result' [-Wunused-result] + 1400 | (void) setgid(getgid()); + | ^~~~~~~~~~~~~~~~ +files.c:1401:16: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] + 1401 | (void) setuid(getuid()); + | ^~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o light.o light.c +hacklib.c: In function 'yyyymmddhhmmss': +hacklib.c:1031:28: warning: '%02d' directive writing between 2 and 11 bytes into a region of size between 4 and 11 [-Wformat-overflow=] + 1031 | Sprintf(datestr, "%04ld%02d%02d%02d%02d%02d", datenum, lt->tm_mon + 1, + | ^~~~ +hacklib.c:1031:22: note: directive argument in the range [-2147483647, 2147483647] + 1031 | Sprintf(datestr, "%04ld%02d%02d%02d%02d%02d", datenum, lt->tm_mon + 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:906, from ../include/global.h:9, from ../include/config.h:588, from ../include/hack.h:10, - from explode.c:5: + from hacklib.c:7: In function 'sprintf', - inlined from 'explode' at explode.c:539:21: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 21 or more bytes (assuming 276) into a destination of size 256 + inlined from 'yyyymmddhhmmss' at hacklib.c:1031:5: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 15 and 67 bytes into a destination of size 15 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -engrave.c: In function 'doengrave': -engrave.c:1154:12: warning: '__builtin___strncat_chk' output may be truncated copying between 0 and 255 bytes from a string of length 255 [-Wstringop-truncation] - 1154 | (void) strncat(buf, ebuf, BUFSZ - (int) strlen(buf) - 1); - | ^ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o lock.o lock.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mail.o mail.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o makemon.o makemon.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mapglyph.o mapglyph.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mcastu.o mcastu.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mhitm.o mhitm.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mhitu.o mhitu.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o minion.o minion.c cmd.c: In function 'enlightenment': cmd.c:1653:24: warning: '%s' directive writing up to 255 bytes into a region of size between 246 and 247 [-Wformat-overflow=] 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); @@ -1811,26 +2054,14 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o fountain.o fountain.c -files.c: In function 'save_savefile_name': -files.c:982:12: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] - 982 | (void) write(fd, (genericptr_t) SAVEF, sizeof(SAVEF)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -files.c: In function 'docompress_file': -files.c:1400:16: warning: ignoring return value of 'setgid' declared with attribute 'warn_unused_result' [-Wunused-result] - 1400 | (void) setgid(getgid()); - | ^~~~~~~~~~~~~~~~ -files.c:1401:16: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] - 1401 | (void) setuid(getuid()); - | ^~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o hack.o hack.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o hacklib.o hacklib.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o invent.o invent.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o light.o light.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o lock.o lock.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mail.o mail.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o makemon.o makemon.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mapglyph.o mapglyph.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mklev.o mklev.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mkmap.o mkmap.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mkmaze.o mkmaze.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mkobj.o mkobj.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mkroom.o mkroom.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mon.o mon.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mondata.o mondata.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o monmove.o monmove.c cmd.c: In function 'show_conduct': cmd.c:1653:24: warning: '%s' directive writing up to 255 bytes into a region of size between 246 and 251 [-Wformat-overflow=] 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); @@ -1929,39 +2160,6 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mcastu.o mcastu.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mhitm.o mhitm.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mhitu.o mhitu.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o minion.o minion.c -hacklib.c: In function 'yyyymmddhhmmss': -hacklib.c:1031:28: warning: '%02d' directive writing between 2 and 11 bytes into a region of size between 4 and 11 [-Wformat-overflow=] - 1031 | Sprintf(datestr, "%04ld%02d%02d%02d%02d%02d", datenum, lt->tm_mon + 1, - | ^~~~ -hacklib.c:1031:22: note: directive argument in the range [-2147483647, 2147483647] - 1031 | Sprintf(datestr, "%04ld%02d%02d%02d%02d%02d", datenum, lt->tm_mon + 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:906, - from ../include/global.h:9, - from ../include/config.h:588, - from ../include/hack.h:10, - from hacklib.c:7: -In function 'sprintf', - inlined from 'yyyymmddhhmmss' at hacklib.c:1031:5: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 15 and 67 bytes into a destination of size 15 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mklev.o mklev.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mkmap.o mkmap.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mkmaze.o mkmaze.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mkobj.o mkobj.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mkroom.o mkroom.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mon.o mon.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mondata.o mondata.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o monmove.o monmove.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mplayer.o mplayer.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mthrowu.o mthrowu.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o muse.o muse.c @@ -1972,8 +2170,6 @@ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o pager.o pager.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o pickup.o pickup.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o pline.o pline.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o polyself.o polyself.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o potion.o potion.c pager.c: In function 'checkfile.constprop': pager.c:652:16: warning: '__builtin_strncpy' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation] 652 | (void) strncpy(dbase_str += 2, "wet", 3); /* skip "mo" replace "ist" */ @@ -1990,15 +2186,45 @@ pline.c:162:16: warning: '__builtin_strncpy' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation] 162 | (void) strncpy(pbuf + BUFSZ - 1 - 6, "...", 3); | ^ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o polyself.o polyself.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o potion.o potion.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o pray.o pray.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o priest.o priest.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o quest.o quest.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o questpgr.o questpgr.c +objnam.c: In function 'mshot_xname': +objnam.c:76:12: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] + 76 | (void) strncpy(s, pref, i); /* do not copy trailing 0 */ + | ^ +In function 'strprepend', + inlined from 'mshot_xname' at objnam.c:805:15: +objnam.c:69:28: note: length computed here + 69 | register int i = (int) strlen(pref); + | ^~~~~~~~~~~~ +objnam.c: In function 'doname_base': +objnam.c:76:12: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] + 76 | (void) strncpy(s, pref, i); /* do not copy trailing 0 */ + | ^ +In function 'strprepend', + inlined from 'doname_base' at objnam.c:1286:10: +objnam.c:69:28: note: length computed here + 69 | register int i = (int) strlen(pref); + | ^~~~~~~~~~~~ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o read.o read.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o rect.o rect.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o region.o region.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o restore.o restore.c +objnam.c: In function 'aobjnam': +objnam.c:76:12: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] + 76 | (void) strncpy(s, pref, i); /* do not copy trailing 0 */ + | ^ +In function 'strprepend', + inlined from 'aobjnam' at objnam.c:1781:14: +objnam.c:69:28: note: length computed here + 69 | register int i = (int) strlen(pref); + | ^~~~~~~~~~~~ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o rip.o rip.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o rnd.o rnd.c restore.c: In function 'get_plname_from_file': restore.c:1214:12: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 1214 | (void) read(fd, (genericptr_t) &pltmpsiz, sizeof(pltmpsiz)); @@ -2006,6 +2232,28 @@ restore.c:1215:12: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 1215 | (void) read(fd, (genericptr_t) plbuf, pltmpsiz); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o role.o role.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o rumors.o rumors.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o save.o save.c +save.c: In function 'savestateinlock': +save.c:401:16: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] + 401 | (void) read(fd, (genericptr_t) &hpid, sizeof hpid); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +save.c:418:16: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] + 418 | (void) write(fd, (genericptr_t) &hackpid, sizeof hackpid); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +save.c:422:20: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] + 422 | (void) write(fd, (genericptr_t) &currlev, sizeof currlev); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +polyself.c: In function 'polyself': +polyself.c:496:26: warning: array subscript -1 is below array bounds of 'struct mvitals[382]' [-Warray-bounds] + 496 | if (!(mvitals[mntmp].mvflags & G_GENOD)) { + | ~~~~~~~^~~~~~~ +In file included from ../include/hack.h:170, + from polyself.c:22: +../include/decl.h:274:3: note: while referencing 'mvitals' + 274 | } mvitals[NUMMONS]; + | ^~~~~~~ options.c: In function 'option_help': options.c:6279:28: warning: ' - ' directive writing 3 bytes into a region of size between 1 and 236 [-Wformat-overflow=] 6279 | Sprintf(buf, "%-20s - %s%c", buf2, compopt[i].descr, @@ -2024,58 +2272,8 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -polyself.c: In function 'polyself': -polyself.c:496:26: warning: array subscript -1 is below array bounds of 'struct mvitals[382]' [-Warray-bounds] - 496 | if (!(mvitals[mntmp].mvflags & G_GENOD)) { - | ~~~~~~~^~~~~~~ -In file included from ../include/hack.h:170, - from polyself.c:22: -../include/decl.h:274:3: note: while referencing 'mvitals' - 274 | } mvitals[NUMMONS]; - | ^~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o rnd.o rnd.c -objnam.c: In function 'mshot_xname': -objnam.c:76:12: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] - 76 | (void) strncpy(s, pref, i); /* do not copy trailing 0 */ - | ^ -In function 'strprepend', - inlined from 'mshot_xname' at objnam.c:805:15: -objnam.c:69:28: note: length computed here - 69 | register int i = (int) strlen(pref); - | ^~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o role.o role.c -objnam.c: In function 'doname_base': -objnam.c:76:12: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] - 76 | (void) strncpy(s, pref, i); /* do not copy trailing 0 */ - | ^ -In function 'strprepend', - inlined from 'doname_base' at objnam.c:1286:10: -objnam.c:69:28: note: length computed here - 69 | register int i = (int) strlen(pref); - | ^~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o rumors.o rumors.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o save.o save.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o shk.o shk.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o shknam.o shknam.c -save.c: In function 'savestateinlock': -save.c:401:16: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] - 401 | (void) read(fd, (genericptr_t) &hpid, sizeof hpid); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -save.c:418:16: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] - 418 | (void) write(fd, (genericptr_t) &hackpid, sizeof hackpid); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -save.c:422:20: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] - 422 | (void) write(fd, (genericptr_t) &currlev, sizeof currlev); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -objnam.c: In function 'aobjnam': -objnam.c:76:12: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] - 76 | (void) strncpy(s, pref, i); /* do not copy trailing 0 */ - | ^ -In function 'strprepend', - inlined from 'aobjnam' at objnam.c:1781:14: -objnam.c:69:28: note: length computed here - 69 | register int i = (int) strlen(pref); - | ^~~~~~~~~~~~ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o sit.o sit.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o sounds.o sounds.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o sp_lev.o sp_lev.c @@ -2084,7 +2282,6 @@ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o steal.o steal.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o steed.o steed.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o teleport.o teleport.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o timeout.o timeout.c sounds.c: In function 'domonnoise': sounds.c:622:40: warning: array subscript [0, 1] is outside array bounds of 'const char * const[2]' [-Warray-bounds] 622 | verbl_msg = vampmsg[vampindex]; @@ -2092,8 +2289,8 @@ sounds.c:592:38: note: while referencing 'vampmsg' 592 | static const char *const vampmsg[] = { | ^~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o timeout.o timeout.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o topten.o topten.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o track.o track.c potion.c: In function 'potionhit': potion.c:1406:41: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] 1406 | Sprintf(saddle_glows, "%s %s", buf, aobjnam(saddle, "glow")); @@ -2125,17 +2322,16 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o track.o track.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o trap.o trap.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o u_init.o u_init.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o uhitm.o uhitm.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o vault.o vault.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o vision.o vision.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o vis_tab.o vis_tab.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o weapon.o weapon.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o were.o were.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o wield.o wield.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o windows.o windows.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o wizard.o wizard.c +/bin/sh ../sys/unix/gitinfo.sh 1 #before 'makedefs -v' +../util/makedefs -v +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o version.o version.c In file included from ../include/hack.h:216, from sp_lev.c:12: In function 'create_monster', @@ -2150,167 +2346,10 @@ ../include/rm.h:596:19: note: while referencing 'monsters' 596 | struct monst *monsters[COLNO][ROWNO]; | ^~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o worm.o worm.c options.c: In function 'doset': options.c:4692:28: warning: '__builtin_strncat' output may be truncated copying between 0 and 255 bytes from a string of length 255 [-Wstringop-truncation] 4692 | (void) strncat(eos(buf), abuf, | ^ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o worn.o worn.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o write.o write.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o zap.o zap.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o posixregex.o ../sys/share/posixregex.c -write.c: In function 'dowrite': -write.c:161:16: warning: '__builtin_strncpy' output truncated before terminating nul copying 7 bytes from a string of the same length [-Wstringop-truncation] - 161 | (void) strncpy(bp, " armor ", 7); /* won't add '\0' */ - | ^ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o ioctl.o ../sys/share/ioctl.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o unixmain.o ../sys/unix/unixmain.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o unixtty.o ../sys/share/unixtty.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o unixunix.o ../sys/unix/unixunix.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o getline.o ../win/tty/getline.c -../sys/unix/unixmain.c: In function 'chdirx': -../sys/unix/unixmain.c:490:16: warning: ignoring return value of 'setgid' declared with attribute 'warn_unused_result' [-Wunused-result] - 490 | (void) setgid(getgid()); - | ^~~~~~~~~~~~~~~~ -../sys/unix/unixmain.c:491:16: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] - 491 | (void) setuid(getuid()); /* Ron Wessels */ - | ^~~~~~~~~~~~~~~~ -../sys/unix/unixmain.c: In function 'sys_random_seed': -../sys/unix/unixmain.c:789:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] - 789 | fread(&seed, sizeof (long), 1, fptr); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -weapon.c: In function 'enhance_weapon_skill': -weapon.c:1261:47: warning: '%s' directive writing up to 255 bytes into a region of size between 249 and 253 [-Wformat-overflow=] - 1261 | Sprintf(buf, " %s%s\t[%s]", prefix, P_NAME(i), - | ^~ - 1262 | sklnambuf); - | ~~~~~~~~~ -In file included from /usr/include/stdio.h:906, - from ../include/global.h:9, - from ../include/config.h:588, - from ../include/hack.h:10, - from weapon.c:11: -In function 'sprintf', - inlined from 'enhance_weapon_skill' at weapon.c:1261:25: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 5 or more bytes (assuming 264) into a destination of size 256 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -weapon.c: In function 'enhance_weapon_skill': -weapon.c:1258:49: warning: '%s' directive writing up to 255 bytes into a region of size between 248 and 252 [-Wformat-overflow=] - 1258 | Sprintf(buf, " %s %-*s [%s]", prefix, longest, - | ^~ - 1259 | P_NAME(i), sklnambuf); - | ~~~~~~~~~ -In function 'sprintf', - inlined from 'enhance_weapon_skill' at weapon.c:1258:25: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 6 or more bytes (assuming 265) into a destination of size 256 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -weapon.c: In function 'enhance_weapon_skill': -weapon.c:1253:46: warning: '%s' directive writing up to 255 bytes into a region of size between 250 and 254 [-Wformat-overflow=] - 1253 | Sprintf(buf, " %s%s\t%s\t%5d(%4d)", prefix, P_NAME(i), - | ^~ - 1254 | sklnambuf, P_ADVANCE(i), - | ~~~~~~~~~ -weapon.c:1253:38: note: directive argument in the range [0, 65535] - 1253 | Sprintf(buf, " %s%s\t%s\t%5d(%4d)", prefix, P_NAME(i), - | ^~~~~~~~~~~~~~~~~~~~~ -weapon.c:1253:38: note: directive argument in the range [-325120, 327680] -In function 'sprintf', - inlined from 'enhance_weapon_skill' at weapon.c:1253:25: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 15 or more bytes (assuming 277) into a destination of size 256 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -weapon.c: In function 'enhance_weapon_skill': -weapon.c:1249:47: warning: '%-12s' directive writing between 12 and 255 bytes into a region of size between 250 and 254 [-Wformat-overflow=] - 1249 | Sprintf(buf, " %s%-*s %-12s %5d(%4d)", prefix, - | ^~~~~ - 1250 | longest, P_NAME(i), sklnambuf, P_ADVANCE(i), - | ~~~~~~~~~ -weapon.c:1249:38: note: directive argument in the range [0, 65535] - 1249 | Sprintf(buf, " %s%-*s %-12s %5d(%4d)", prefix, - | ^~~~~~~~~~~~~~~~~~~~~~~~ -weapon.c:1249:38: note: directive argument in the range [-325120, 327680] -In function 'sprintf', - inlined from 'enhance_weapon_skill' at weapon.c:1249:25: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 27 or more bytes (assuming 277) into a destination of size 256 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -../sys/share/unixtty.c: In function 'linux_mapon': -../sys/share/unixtty.c:426:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] - 426 | write(1, "\033(B", 3); - | ^~~~~~~~~~~~~~~~~~~~~ -../sys/share/unixtty.c: In function 'linux_mapoff': -../sys/share/unixtty.c:436:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] - 436 | write(1, "\033(U", 3); - | ^~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o termcap.o ../win/tty/termcap.c -../sys/unix/unixunix.c: In function 'child': -../sys/unix/unixunix.c:307:16: warning: ignoring return value of 'setgid' declared with attribute 'warn_unused_result' [-Wunused-result] - 307 | (void) setgid(getgid()); - | ^~~~~~~~~~~~~~~~ -../sys/unix/unixunix.c:308:16: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] - 308 | (void) setuid(getuid()); - | ^~~~~~~~~~~~~~~~ -../sys/unix/unixunix.c:310:16: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] - 310 | (void) chdir(getenv("HOME")); - | ^~~~~~~~~~~~~~~~~~~~~ -../sys/unix/unixmain.c: In function 'main': -../sys/unix/unixmain.c:244:20: warning: '__builtin___strncat_chk' output may be truncated copying between 0 and 30 bytes from a string of length 31 [-Wstringop-truncation] - 244 | (void) strncat(strcat(plname, "-"), pl_character, - | ^ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o topl.o ../win/tty/topl.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o wintty.o ../win/tty/wintty.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cursmain.o ../win/curses/cursmain.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o curswins.o ../win/curses/curswins.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cursmisc.o ../win/curses/cursmisc.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cursdial.o ../win/curses/cursdial.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cursstat.o ../win/curses/cursstat.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cursinit.o ../win/curses/cursinit.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cursmesg.o ../win/curses/cursmesg.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cursinvt.o ../win/curses/cursinvt.c -/bin/sh ../sys/unix/gitinfo.sh 1 #before 'makedefs -v' -../win/curses/cursstat.c: In function 'curs_HPbar': -../win/curses/cursstat.c:925:12: warning: '__builtin___strncpy_chk' specified bound depends on the length of the source argument [-Wstringop-truncation] - 925 | (void) strncpy(bar, text, bar_len); - | ^ -../win/curses/cursstat.c:923:30: note: length computed here - 923 | if (bar_len > (k = (int) strlen(text))) /* 26 for vertical status */ - | ^~~~~~~~~~~~ -../util/makedefs -v -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o version.o version.c -../win/curses/cursinit.c: In function 'curses_choose_character': -../win/curses/cursinit.c:455:26: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] - 455 | sprintf(choice, "%s%c", tmpchoice, '\033'); - | ^ -In file included from /usr/include/stdio.h:906, - from /usr/include/curses.h:232, - from ../win/curses/cursinit.c:6: -In function 'sprintf', - inlined from 'curses_choose_character' at ../win/curses/cursinit.c:455:5: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 2 and 129 bytes into a destination of size 128 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ Linking nethack-console. cc -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -o nethack-console monst.o objects.o allmain.o alloc.o apply.o artifact.o attrib.o ball.o bones.o botl.o cmd.o dbridge.o decl.o detect.o dig.o display.o dlb.o do.o do_name.o do_wear.o dog.o dogmove.o dokick.o dothrow.o drawing.o dungeon.o eat.o end.o engrave.o exper.o explode.o extralev.o files.o fountain.o hack.o hacklib.o invent.o isaac64.o light.o lock.o mail.o makemon.o mapglyph.o mcastu.o mhitm.o mhitu.o minion.o mklev.o mkmap.o mkmaze.o mkobj.o mkroom.o mon.o mondata.o monmove.o mplayer.o mthrowu.o muse.o music.o o_init.o objnam.o options.o pager.o pickup.o pline.o polyself.o potion.o pray.o priest.o quest.o questpgr.o read.o rect.o region.o restore.o rip.o rnd.o role.o rumors.o save.o shk.o shknam.o sit.o sounds.o sp_lev.o spell.o sys.o steal.o steed.o teleport.o timeout.o topten.o track.o trap.o u_init.o uhitm.o vault.o vision.o vis_tab.o weapon.o were.o wield.o windows.o wizard.o worm.o worn.o write.o zap.o posixregex.o ioctl.o unixmain.o unixtty.o unixunix.o unixres.o getline.o termcap.o topl.o wintty.o cursmain.o curswins.o cursmisc.o cursdial.o cursstat.o cursinit.o cursmesg.o cursinvt.o version.o -lcurses nethack-console is up to date. @@ -2352,9 +2391,9 @@ make[2]: Leaving directory '/build/nethack-3.6.6/util' /usr/bin/make LFLAGS='-g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now' CFLAGS='-Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS' WINSRC='$(WINTTYSRC) $(WINX11SRC)' WINOBJ='$(WINTTYOBJ) $(WINX11OBJ)' WINLIB='-lncurses -lXaw -Wl,--as-needed -lXmu -lXext -Wl,--no-as-needed -lXt -lXpm -lX11 -Wl,--as-needed -lm -Wl,--no-as-needed' LINK='$(CC)' GAME='nethack-x11' -C src 'nethack-x11' make[2]: Entering directory '/build/nethack-3.6.6/src' +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o alloc.o alloc.c make[3]: Entering directory '/build/nethack-3.6.6/util' ./makedefs -o -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o alloc.o alloc.c make[3]: Leaving directory '/build/nethack-3.6.6/util' cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dlb.o dlb.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o isaac64.o isaac64.c @@ -2367,9 +2406,9 @@ touch ../src/hack.h-t cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o weapon.o weapon.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o were.o were.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o wield.o wield.c make[3]: Entering directory '/build/nethack-3.6.6/util' ./makedefs -z -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o wield.o wield.c make[3]: Leaving directory '/build/nethack-3.6.6/util' cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o windows.o windows.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o wizard.o wizard.c @@ -2382,12 +2421,11 @@ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o unixmain.o ../sys/unix/unixmain.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o unixtty.o ../sys/share/unixtty.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o unixunix.o ../sys/unix/unixunix.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o getline.o ../win/tty/getline.c write.c: In function 'dowrite': write.c:161:16: warning: '__builtin_strncpy' output truncated before terminating nul copying 7 bytes from a string of the same length [-Wstringop-truncation] 161 | (void) strncpy(bp, " armor ", 7); /* won't add '\0' */ | ^ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o getline.o ../win/tty/getline.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o termcap.o ../win/tty/termcap.c ../sys/share/unixtty.c: In function 'linux_mapon': ../sys/share/unixtty.c:426:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 426 | write(1, "\033(B", 3); @@ -2403,11 +2441,12 @@ ../sys/unix/unixmain.c:491:16: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] 491 | (void) setuid(getuid()); /* Ron Wessels */ | ^~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o topl.o ../win/tty/topl.c ../sys/unix/unixmain.c: In function 'sys_random_seed': ../sys/unix/unixmain.c:789:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 789 | fread(&seed, sizeof (long), 1, fptr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o termcap.o ../win/tty/termcap.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o topl.o ../win/tty/topl.c ../sys/unix/unixunix.c: In function 'child': ../sys/unix/unixunix.c:307:16: warning: ignoring return value of 'setgid' declared with attribute 'warn_unused_result' [-Wunused-result] 307 | (void) setgid(getgid()); @@ -2419,16 +2458,18 @@ 310 | (void) chdir(getenv("HOME")); | ^~~~~~~~~~~~~~~~~~~~~ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o wintty.o ../win/tty/wintty.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o winX.o ../win/X11/winX.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o winmap.o ../win/X11/winmap.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o winmenu.o ../win/X11/winmenu.c ../sys/unix/unixmain.c: In function 'main': ../sys/unix/unixmain.c:244:20: warning: '__builtin___strncat_chk' output may be truncated copying between 0 and 30 bytes from a string of length 31 [-Wstringop-truncation] 244 | (void) strncat(strcat(plname, "-"), pl_character, | ^ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o winX.o ../win/X11/winX.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o winmap.o ../win/X11/winmap.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o winmenu.o ../win/X11/winmenu.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o winmesg.o ../win/X11/winmesg.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o winmisc.o ../win/X11/winmisc.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o winstat.o ../win/X11/winstat.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o wintext.o ../win/X11/wintext.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o winval.o ../win/X11/winval.c ../win/X11/winmap.c: In function 'map_update': ../win/X11/winmap.c:1243:24: warning: variable 'win_start_col' set but not used [-Wunused-but-set-variable] 1243 | int win_start_row, win_start_col; @@ -2436,7 +2477,10 @@ ../win/X11/winmap.c:1243:9: warning: variable 'win_start_row' set but not used [-Wunused-but-set-variable] 1243 | int win_start_row, win_start_col; | ^~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o wintext.o ../win/X11/wintext.c +../win/X11/winstat.c: In function 'X11_status_update_tty': +../win/X11/winstat.c:314:20: warning: variable 'oncearound' set but not used [-Wunused-but-set-variable] + 314 | static boolean oncearound = FALSE; /* prevent premature partial display */ + | ^~~~~~~~~~ ../win/X11/winX.c: In function 'init_standard_windows': ../win/X11/winX.c:2575:46: warning: passing argument 2 of 'XtAppSetErrorHandler' makes '__attribute__((noreturn))' qualified function pointer from unqualified [-Wdiscarded-qualifiers] 2575 | (void) XtAppSetErrorHandler(app_context, (XtErrorHandler) hangup); @@ -2452,17 +2496,12 @@ ../win/X11/winX.c:1569:12: warning: ignoring return value of 'seteuid' declared with attribute 'warn_unused_result' [-Wunused-result] 1569 | (void) seteuid(savuid); | ^~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o winval.o ../win/X11/winval.c +make[3]: Entering directory '/build/nethack-3.6.6/util' +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../win/share/tilemap.c ../win/X11/winmisc.c: In function 'X11_player_selection_randomize': ../win/X11/winmisc.c:504:13: warning: variable 'fully_specified_role' set but not used [-Wunused-but-set-variable] 504 | boolean fully_specified_role, choose_race_first; | ^~~~~~~~~~~~~~~~~~~~ -../win/X11/winstat.c: In function 'X11_status_update_tty': -../win/X11/winstat.c:314:20: warning: variable 'oncearound' set but not used [-Wunused-but-set-variable] - 314 | static boolean oncearound = FALSE; /* prevent premature partial display */ - | ^~~~~~~~~~ -make[3]: Entering directory '/build/nethack-3.6.6/util' -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../win/share/tilemap.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o allmain.o allmain.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o apply.o apply.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o artifact.o artifact.c @@ -2485,6 +2524,8 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o ball.o ball.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o bones.o bones.c weapon.c: In function 'enhance_weapon_skill': weapon.c:1261:47: warning: '%s' directive writing up to 255 bytes into a region of size between 249 and 253 [-Wformat-overflow=] 1261 | Sprintf(buf, " %s%s\t[%s]", prefix, P_NAME(i), @@ -2558,7 +2599,7 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o ball.o ball.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o botl.o botl.c ../win/X11/winX.c: In function 'done_button': ../win/X11/winX.c:1834:12: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation] 1834 | (void) strncpy(getline_input, s, len); @@ -2566,28 +2607,26 @@ ../win/X11/winX.c:1828:11: note: length computed here 1828 | len = strlen(s); | ^~~~~~~~~ +cc -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -o tilemap tilemap.o ../win/X11/winX.c: In function 'askname_done': ../win/X11/winX.c:1756:12: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation] 1756 | (void) strncpy(plname, s, len); | ^ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o bones.o bones.c ../win/X11/winX.c:1746:11: note: length computed here 1746 | len = strlen(s); | ^~~~~~~~~ -cc -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -o tilemap tilemap.o ./tilemap make[3]: Leaving directory '/build/nethack-3.6.6/util' -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o botl.o botl.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o cmd.o cmd.c botl.c: In function 'parse_status_hl2': botl.c:2069:12: warning: the comparison will always evaluate as 'true' for the pointer operand in 's + (sizetype)((long unsigned int)sidx * 128)' must not be NULL [-Waddress] 2069 | while (s[sidx]) { | ^ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dbridge.o dbridge.c botl.c: In function 'parse_condition': botl.c:2488:11: warning: the comparison will always evaluate as 'true' for the pointer operand in 's + (sizetype)((long unsigned int)sidx * 128)' must not be NULL [-Waddress] 2488 | while(s[sidx]) { | ^ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dbridge.o dbridge.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o decl.o decl.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o detect.o detect.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dig.o dig.c @@ -2599,8 +2638,6 @@ 2727 | (void) strncpy(buf, " if not for ", 12); | ^ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o do_wear.o do_wear.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dog.o dog.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dogmove.o dogmove.c botl.c: In function 'status_hilite_linestr_gather_conditions': botl.c:2793:48: warning: '%s' directive writing up to 255 bytes into a region of size 245 [-Wformat-overflow=] 2793 | Sprintf(condbuf, "condition/%s/%s", @@ -2621,6 +2658,8 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dog.o dog.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dogmove.o dogmove.c do_name.c: In function 'getpos_menu': do_name.c:604:37: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] 604 | Sprintf(fullbuf, "%s%s%s", firstmatch, @@ -2639,17 +2678,6 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -dogmove.c: In function 'droppables': -dogmove.c:120:1: warning: function may return address of local variable [-Wreturn-local-addr] - 120 | } - | ^ -dogmove.c:29:28: note: declared here - 29 | struct obj *obj, *wep, dummy, *pickaxe, *unihorn, *key; - | ^~~~~ -dogmove.c:29:28: note: declared here -dogmove.c:29:28: note: declared here -dogmove.c:29:28: note: declared here -dogmove.c:29:28: note: declared here cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dokick.o dokick.c do_name.c: In function 'getpos': do_name.c:190:31: warning: '%s' directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] @@ -2680,7 +2708,32 @@ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dothrow.o dothrow.c +dogmove.c: In function 'droppables': +dogmove.c:120:1: warning: function may return address of local variable [-Wreturn-local-addr] + 120 | } + | ^ +dogmove.c:29:28: note: declared here + 29 | struct obj *obj, *wep, dummy, *pickaxe, *unihorn, *key; + | ^~~~~ +dogmove.c:29:28: note: declared here +dogmove.c:29:28: note: declared here +dogmove.c:29:28: note: declared here +dogmove.c:29:28: note: declared here cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o drawing.o drawing.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dungeon.o dungeon.c +botl.c: In function 'status_hilite_menu_add': +botl.c:3385:38: warning: ' or ' directive writing 4 bytes into a region of size between 1 and 80 [-Wformat-overflow=] + 3385 | Sprintf(obuf, "%s or %s", + | ^~~~ +In function 'sprintf', + inlined from 'status_hilite_menu_add' at botl.c:3385:21: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 5 and 163 bytes into a destination of size 80 + 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 31 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 32 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ cmd.c: In function 'enlght_halfdmg': cmd.c:1653:24: warning: '%s' directive writing up to 255 bytes into a region of size 247 [-Wformat-overflow=] 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); @@ -2700,6 +2753,7 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o eat.o eat.c cmd.c: In function 'one_characteristic': cmd.c:1653:22: warning: '%s' directive writing between 3 and 4 bytes into a region of size between 0 and 255 [-Wformat-overflow=] 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); @@ -2714,20 +2768,7 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dungeon.o dungeon.c -botl.c: In function 'status_hilite_menu_add': -botl.c:3385:38: warning: ' or ' directive writing 4 bytes into a region of size between 1 and 80 [-Wformat-overflow=] - 3385 | Sprintf(obuf, "%s or %s", - | ^~~~ -In function 'sprintf', - inlined from 'status_hilite_menu_add' at botl.c:3385:21: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 5 and 163 bytes into a destination of size 80 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o end.o end.c cmd.c: In function 'background_enlightenment.constprop': cmd.c:1653:24: warning: '%s' directive writing up to 255 bytes into a region of size between 246 and 247 [-Wformat-overflow=] 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); @@ -2742,8 +2783,6 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o eat.o eat.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o end.o end.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o engrave.o engrave.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o exper.o exper.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o explode.o explode.c @@ -2752,17 +2791,12 @@ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o fountain.o fountain.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o hack.o hack.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o hacklib.o hacklib.c -files.c: In function 'save_savefile_name': -files.c:982:12: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] - 982 | (void) write(fd, (genericptr_t) SAVEF, sizeof(SAVEF)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -files.c: In function 'docompress_file': -files.c:1400:16: warning: ignoring return value of 'setgid' declared with attribute 'warn_unused_result' [-Wunused-result] - 1400 | (void) setgid(getgid()); - | ^~~~~~~~~~~~~~~~ -files.c:1401:16: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] - 1401 | (void) setuid(getuid()); - | ^~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o invent.o invent.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o light.o light.c +engrave.c: In function 'doengrave': +engrave.c:1154:12: warning: '__builtin___strncat_chk' output may be truncated copying between 0 and 255 bytes from a string of length 255 [-Wstringop-truncation] + 1154 | (void) strncat(buf, ebuf, BUFSZ - (int) strlen(buf) - 1); + | ^ explode.c: In function 'explode': explode.c:539:67: warning: '%s' directive writing up to 255 bytes into a region of size 236 [-Wformat-overflow=] 539 | Sprintf(killer.name, "caught %sself in %s own %s", uhim(), @@ -2781,8 +2815,17 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o invent.o invent.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o light.o light.c +files.c: In function 'save_savefile_name': +files.c:982:12: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] + 982 | (void) write(fd, (genericptr_t) SAVEF, sizeof(SAVEF)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +files.c: In function 'docompress_file': +files.c:1400:16: warning: ignoring return value of 'setgid' declared with attribute 'warn_unused_result' [-Wunused-result] + 1400 | (void) setgid(getgid()); + | ^~~~~~~~~~~~~~~~ +files.c:1401:16: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] + 1401 | (void) setuid(getuid()); + | ^~~~~~~~~~~~~~~~ cmd.c: In function 'enlightenment': cmd.c:1653:24: warning: '%s' directive writing up to 255 bytes into a region of size between 246 and 247 [-Wformat-overflow=] 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); @@ -2903,12 +2946,12 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -engrave.c: In function 'doengrave': -engrave.c:1154:12: warning: '__builtin___strncat_chk' output may be truncated copying between 0 and 255 bytes from a string of length 255 [-Wstringop-truncation] - 1154 | (void) strncat(buf, ebuf, BUFSZ - (int) strlen(buf) - 1); - | ^ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o lock.o lock.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mail.o mail.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o makemon.o makemon.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mapglyph.o mapglyph.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mcastu.o mcastu.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mhitm.o mhitm.c hacklib.c: In function 'yyyymmddhhmmss': hacklib.c:1031:28: warning: '%02d' directive writing between 2 and 11 bytes into a region of size between 4 and 11 [-Wformat-overflow=] 1031 | Sprintf(datestr, "%04ld%02d%02d%02d%02d%02d", datenum, lt->tm_mon + 1, @@ -2930,10 +2973,6 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o makemon.o makemon.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mapglyph.o mapglyph.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mcastu.o mcastu.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mhitm.o mhitm.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mhitu.o mhitu.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o minion.o minion.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mklev.o mklev.c @@ -2994,6 +3033,7 @@ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ cmd.c: In function 'show_conduct': +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mkmap.o mkmap.c cmd.c:1653:24: warning: '%s' directive writing up to 255 bytes into a region of size between 246 and 251 [-Wformat-overflow=] 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); | ^~ @@ -3035,7 +3075,6 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mkmap.o mkmap.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mkmaze.o mkmaze.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mkobj.o mkobj.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mkroom.o mkroom.c @@ -3052,8 +3091,6 @@ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o pager.o pager.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o pickup.o pickup.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o pline.o pline.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o polyself.o polyself.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o potion.o potion.c pline.c: In function 'vpline': pline.c:129:9: warning: variable 'vlen' set but not used [-Wunused-but-set-variable] 129 | int vlen = 0; @@ -3062,7 +3099,6 @@ pline.c:598:9: warning: variable 'vlen' set but not used [-Wunused-but-set-variable] 598 | int vlen = 0; | ^~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o pray.o pray.c pline.c: In function 'vpline': pline.c:162:16: warning: '__builtin_strncpy' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation] 162 | (void) strncpy(pbuf + BUFSZ - 1 - 6, "...", 3); @@ -3071,8 +3107,24 @@ pager.c:652:16: warning: '__builtin_strncpy' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation] 652 | (void) strncpy(dbase_str += 2, "wet", 3); /* skip "mo" replace "ist" */ | ^ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o polyself.o polyself.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o potion.o potion.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o pray.o pray.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o priest.o priest.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o quest.o quest.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o questpgr.o questpgr.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o read.o read.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o rect.o rect.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o region.o region.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o restore.o restore.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o rip.o rip.c +restore.c: In function 'get_plname_from_file': +restore.c:1214:12: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] + 1214 | (void) read(fd, (genericptr_t) &pltmpsiz, sizeof(pltmpsiz)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +restore.c:1215:12: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] + 1215 | (void) read(fd, (genericptr_t) plbuf, pltmpsiz); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ objnam.c: In function 'mshot_xname': objnam.c:76:12: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 76 | (void) strncpy(s, pref, i); /* do not copy trailing 0 */ @@ -3082,8 +3134,16 @@ objnam.c:69:28: note: length computed here 69 | register int i = (int) strlen(pref); | ^~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o questpgr.o questpgr.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o read.o read.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o rnd.o rnd.c +polyself.c: In function 'polyself': +polyself.c:496:26: warning: array subscript -1 is below array bounds of 'struct mvitals[382]' [-Warray-bounds] + 496 | if (!(mvitals[mntmp].mvflags & G_GENOD)) { + | ~~~~~~~^~~~~~~ +In file included from ../include/hack.h:170, + from polyself.c:22: +../include/decl.h:274:3: note: while referencing 'mvitals' + 274 | } mvitals[NUMMONS]; + | ^~~~~~~ objnam.c: In function 'doname_base': objnam.c:76:12: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 76 | (void) strncpy(s, pref, i); /* do not copy trailing 0 */ @@ -3093,7 +3153,11 @@ objnam.c:69:28: note: length computed here 69 | register int i = (int) strlen(pref); | ^~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o rect.o rect.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o role.o role.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o rumors.o rumors.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o save.o save.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o shk.o shk.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o shknam.o shknam.c objnam.c: In function 'aobjnam': objnam.c:76:12: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 76 | (void) strncpy(s, pref, i); /* do not copy trailing 0 */ @@ -3103,16 +3167,18 @@ objnam.c:69:28: note: length computed here 69 | register int i = (int) strlen(pref); | ^~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o region.o region.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o restore.o restore.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o rip.o rip.c -restore.c: In function 'get_plname_from_file': -restore.c:1214:12: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] - 1214 | (void) read(fd, (genericptr_t) &pltmpsiz, sizeof(pltmpsiz)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -restore.c:1215:12: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] - 1215 | (void) read(fd, (genericptr_t) plbuf, pltmpsiz); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +save.c: In function 'savestateinlock': +save.c:401:16: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] + 401 | (void) read(fd, (genericptr_t) &hpid, sizeof hpid); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +save.c:418:16: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] + 418 | (void) write(fd, (genericptr_t) &hackpid, sizeof hackpid); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +save.c:422:20: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] + 422 | (void) write(fd, (genericptr_t) &currlev, sizeof currlev); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o sit.o sit.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o sounds.o sounds.c options.c: In function 'option_help': options.c:6279:28: warning: ' - ' directive writing 3 bytes into a region of size between 1 and 236 [-Wformat-overflow=] 6279 | Sprintf(buf, "%-20s - %s%c", buf2, compopt[i].descr, @@ -3131,35 +3197,20 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o rnd.o rnd.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o role.o role.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o rumors.o rumors.c -polyself.c: In function 'polyself': -polyself.c:496:26: warning: array subscript -1 is below array bounds of 'struct mvitals[382]' [-Warray-bounds] - 496 | if (!(mvitals[mntmp].mvflags & G_GENOD)) { - | ~~~~~~~^~~~~~~ -In file included from ../include/hack.h:170, - from polyself.c:22: -../include/decl.h:274:3: note: while referencing 'mvitals' - 274 | } mvitals[NUMMONS]; - | ^~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o save.o save.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o shk.o shk.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o shknam.o shknam.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o sit.o sit.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o sounds.o sounds.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o sp_lev.o sp_lev.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o spell.o spell.c -save.c: In function 'savestateinlock': -save.c:401:16: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] - 401 | (void) read(fd, (genericptr_t) &hpid, sizeof hpid); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -save.c:418:16: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] - 418 | (void) write(fd, (genericptr_t) &hackpid, sizeof hackpid); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -save.c:422:20: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] - 422 | (void) write(fd, (genericptr_t) &currlev, sizeof currlev); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +sounds.c: In function 'domonnoise': +sounds.c:622:40: warning: array subscript [0, 1] is outside array bounds of 'const char * const[2]' [-Warray-bounds] + 622 | verbl_msg = vampmsg[vampindex]; + | ~~~~~~~^~~~~~~~~~~ +sounds.c:592:38: note: while referencing 'vampmsg' + 592 | static const char *const vampmsg[] = { + | ^~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o sys.o sys.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o steal.o steal.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o steed.o steed.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o teleport.o teleport.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o timeout.o timeout.c potion.c: In function 'potionhit': potion.c:1406:41: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] 1406 | Sprintf(saddle_glows, "%s %s", buf, aobjnam(saddle, "glow")); @@ -3191,18 +3242,6 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o sys.o sys.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o steal.o steal.c -sounds.c: In function 'domonnoise': -sounds.c:622:40: warning: array subscript [0, 1] is outside array bounds of 'const char * const[2]' [-Warray-bounds] - 622 | verbl_msg = vampmsg[vampindex]; - | ~~~~~~~^~~~~~~~~~~ -sounds.c:592:38: note: while referencing 'vampmsg' - 592 | static const char *const vampmsg[] = { - | ^~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o steed.o steed.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o teleport.o teleport.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o timeout.o timeout.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o topten.o topten.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o track.o track.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o trap.o trap.c @@ -3215,10 +3254,6 @@ /bin/sh ../sys/unix/gitinfo.sh 1 #before 'makedefs -v' ../util/makedefs -v cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o version.o version.c -options.c: In function 'doset': -options.c:4692:28: warning: '__builtin_strncat' output may be truncated copying between 0 and 255 bytes from a string of length 255 [-Wstringop-truncation] - 4692 | (void) strncat(eos(buf), abuf, - | ^ In file included from ../include/hack.h:216, from sp_lev.c:12: In function 'create_monster', @@ -3233,6 +3268,10 @@ ../include/rm.h:596:19: note: while referencing 'monsters' 596 | struct monst *monsters[COLNO][ROWNO]; | ^~~~~~~~ +options.c: In function 'doset': +options.c:4692:28: warning: '__builtin_strncat' output may be truncated copying between 0 and 255 bytes from a string of length 255 [-Wstringop-truncation] + 4692 | (void) strncat(eos(buf), abuf, + | ^ Linking nethack-x11. cc -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -o nethack-x11 monst.o objects.o allmain.o alloc.o apply.o artifact.o attrib.o ball.o bones.o botl.o cmd.o dbridge.o decl.o detect.o dig.o display.o dlb.o do.o do_name.o do_wear.o dog.o dogmove.o dokick.o dothrow.o drawing.o dungeon.o eat.o end.o engrave.o exper.o explode.o extralev.o files.o fountain.o hack.o hacklib.o invent.o isaac64.o light.o lock.o mail.o makemon.o mapglyph.o mcastu.o mhitm.o mhitu.o minion.o mklev.o mkmap.o mkmaze.o mkobj.o mkroom.o mon.o mondata.o monmove.o mplayer.o mthrowu.o muse.o music.o o_init.o objnam.o options.o pager.o pickup.o pline.o polyself.o potion.o pray.o priest.o quest.o questpgr.o read.o rect.o region.o restore.o rip.o rnd.o role.o rumors.o save.o shk.o shknam.o sit.o sounds.o sp_lev.o spell.o sys.o steal.o steed.o teleport.o timeout.o topten.o track.o trap.o u_init.o uhitm.o vault.o vision.o vis_tab.o weapon.o were.o wield.o windows.o wizard.o worm.o worn.o write.o zap.o posixregex.o ioctl.o unixmain.o unixtty.o unixunix.o unixres.o getline.o termcap.o topl.o wintty.o Window.o dialogs.o winX.o winmap.o winmenu.o winmesg.o winmisc.o winstat.o wintext.o winval.o tile.o version.o -lncurses -lXaw -Wl,--as-needed -lXmu -lXext -Wl,--no-as-needed -lXt -lXpm -lX11 -Wl,--as-needed -lm -Wl,--no-as-needed nethack-x11 is up to date. @@ -3298,11 +3337,11 @@ make[3]: Leaving directory '/build/nethack-3.6.6/util' touch ../src/hack.h-t cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o weapon.o weapon.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o were.o were.c make[3]: Entering directory '/build/nethack-3.6.6/util' ./makedefs -z -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o were.o were.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o wield.o wield.c make[3]: Leaving directory '/build/nethack-3.6.6/util' +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o wield.o wield.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o windows.o windows.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o wizard.o wizard.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o worm.o worm.c @@ -3313,8 +3352,6 @@ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o ioctl.o ../sys/share/ioctl.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o unixmain.o ../sys/unix/unixmain.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o unixtty.o ../sys/share/unixtty.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o unixunix.o ../sys/unix/unixunix.c -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4bind.o ../win/Qt4/qt4bind.cpp ../sys/unix/unixmain.c: In function 'chdirx': ../sys/unix/unixmain.c:490:16: warning: ignoring return value of 'setgid' declared with attribute 'warn_unused_result' [-Wunused-result] 490 | (void) setgid(getgid()); @@ -3330,7 +3367,16 @@ write.c:161:16: warning: '__builtin_strncpy' output truncated before terminating nul copying 7 bytes from a string of the same length [-Wstringop-truncation] 161 | (void) strncpy(bp, " armor ", 7); /* won't add '\0' */ | ^ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o unixunix.o ../sys/unix/unixunix.c +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4bind.o ../win/Qt4/qt4bind.cpp g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4click.o ../win/Qt4/qt4click.cpp +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4delay.o ../win/Qt4/qt4delay.cpp +../sys/unix/unixmain.c: In function 'main': +../sys/unix/unixmain.c:244:20: warning: '__builtin___strncat_chk' output may be truncated copying between 0 and 30 bytes from a string of length 31 [-Wstringop-truncation] + 244 | (void) strncat(strcat(plname, "-"), pl_character, + | ^ +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4glyph.o ../win/Qt4/qt4glyph.cpp +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4icon.o ../win/Qt4/qt4icon.cpp ../sys/unix/unixunix.c: In function 'child': ../sys/unix/unixunix.c:307:16: warning: ignoring return value of 'setgid' declared with attribute 'warn_unused_result' [-Wunused-result] 307 | (void) setgid(getgid()); @@ -3341,18 +3387,14 @@ ../sys/unix/unixunix.c:310:16: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 310 | (void) chdir(getenv("HOME")); | ^~~~~~~~~~~~~~~~~~~~~ -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4delay.o ../win/Qt4/qt4delay.cpp -../sys/unix/unixmain.c: In function 'main': -../sys/unix/unixmain.c:244:20: warning: '__builtin___strncat_chk' output may be truncated copying between 0 and 30 bytes from a string of length 31 [-Wstringop-truncation] - 244 | (void) strncat(strcat(plname, "-"), pl_character, - | ^ -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4glyph.o ../win/Qt4/qt4glyph.cpp -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4icon.o ../win/Qt4/qt4icon.cpp g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4inv.o ../win/Qt4/qt4inv.cpp g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4key.o ../win/Qt4/qt4key.cpp g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4line.o ../win/Qt4/qt4line.cpp g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4main.o ../win/Qt4/qt4main.cpp g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4map.o ../win/Qt4/qt4map.cpp +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4menu.o ../win/Qt4/qt4menu.cpp +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4msg.o ../win/Qt4/qt4msg.cpp +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4plsel.o ../win/Qt4/qt4plsel.cpp weapon.c: In function 'enhance_weapon_skill': weapon.c:1261:47: warning: '%s' directive writing up to 255 bytes into a region of size between 249 and 253 [-Wformat-overflow=] 1261 | Sprintf(buf, " %s%s\t[%s]", prefix, P_NAME(i), @@ -3426,15 +3468,22 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4menu.o ../win/Qt4/qt4menu.cpp -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4msg.o ../win/Qt4/qt4msg.cpp +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4rip.o ../win/Qt4/qt4rip.cpp ../win/Qt4/qt4str.cpp: In function 'QString nethack_qt4::nh_capitalize_words(const QString&)': ../win/Qt4/qt4str.cpp:38:26: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 38 | for (size_t i = 0; i < words.size(); ++i) { | ~~^~~~~~~~~~~~~~ -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4plsel.o ../win/Qt4/qt4plsel.cpp -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4rip.o ../win/Qt4/qt4rip.cpp g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4set.o ../win/Qt4/qt4set.cpp +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4stat.o ../win/Qt4/qt4stat.cpp +../win/Qt4/qt4map.cpp: In member function 'virtual void nethack_qt4::NetHackQtMapViewport::paintEvent(QPaintEvent*)': +../win/Qt4/qt4map.cpp:121:30: warning: 'int QFontMetrics::width(const QString&, int) const' is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] + 121 | if ( fm.width("M") > qt_settings->glyphs().width() ) + | ~~~~~~~~^~~~~ +In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGui:26, + from ../win/Qt4/qt4map.cpp:20: +/usr/include/x86_64-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here + 106 | int width(const QString &, int len = -1) const; + | ^~~~~ ../win/Qt4/qt4key.cpp: In member function 'Qt::KeyboardModifiers nethack_qt4::NetHackQtKeyBuffer::GetState()': ../win/Qt4/qt4key.cpp:67:27: warning: 'constexpr QFlags::QFlags(Zero) [with Enum = Qt::KeyboardModifier; Zero = int QFlags::Private::*]' is deprecated: Use default constructor instead [-Wdeprecated-declarations] 67 | if ( Empty() ) return 0; @@ -3454,7 +3503,157 @@ /usr/include/x86_64-linux-gnu/qt5/QtCore/qflags.h:123:80: note: declared here 123 | QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {} | ^~~~~~ -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4stat.o ../win/Qt4/qt4stat.cpp +../win/Qt4/qt4glyph.cpp: In constructor 'nethack_qt4::NetHackQtGlyphs::NetHackQtGlyphs()': +../win/Qt4/qt4glyph.cpp:55:24: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] + 55 | msg.sprintf("Cannot load x11tiles or nhtiles.bmp"); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:47, + from /usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractanimation.h:43, + from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:6, + from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGuiDepends:3, + from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGui:3, + from ../win/Qt4/qt4glyph.cpp:21: +/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here + 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); + | ^~~~~~~ +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4streq.o ../win/Qt4/qt4streq.cpp +In file included from ../win/Qt4/qt4map.cpp:28: +../include/qt_xpms.h: At global scope: +../include/qt_xpms.h:1363:20: warning: 'wis_xpm' defined but not used [-Wunused-variable] + 1363 | static const char *wis_xpm[] = { + | ^~~~~~~ +../include/qt_xpms.h:1304:20: warning: 'stunned_xpm' defined but not used [-Wunused-variable] + 1304 | static const char *stunned_xpm[] = { + | ^~~~~~~~~~~ +../include/qt_xpms.h:1240:20: warning: 'str_xpm' defined but not used [-Wunused-variable] + 1240 | static const char *str_xpm[] = { + | ^~~~~~~ +../include/qt_xpms.h:1180:20: warning: 'slt_enc_xpm' defined but not used [-Wunused-variable] + 1180 | static const char *slt_enc_xpm[] = { + | ^~~~~~~~~~~ +../include/qt_xpms.h:1110:20: warning: 'sick_il_xpm' defined but not used [-Wunused-variable] + 1110 | static const char *sick_il_xpm[] = { + | ^~~~~~~~~~~ +../include/qt_xpms.h:1033:20: warning: 'sick_fp_xpm' defined but not used [-Wunused-variable] + 1033 | static const char *sick_fp_xpm[] = { + | ^~~~~~~~~~~ +../include/qt_xpms.h:963:20: warning: 'satiated_xpm' defined but not used [-Wunused-variable] + 963 | static const char *satiated_xpm[] = { + | ^~~~~~~~~~~~ +../include/qt_xpms.h:860:20: warning: 'ovr_enc_xpm' defined but not used [-Wunused-variable] + 860 | static const char *ovr_enc_xpm[] = { + | ^~~~~~~~~~~ +../include/qt_xpms.h:799:20: warning: 'neutral_xpm' defined but not used [-Wunused-variable] + 799 | static const char *neutral_xpm[] = { + | ^~~~~~~~~~~ +../include/qt_xpms.h:739:20: warning: 'mod_enc_xpm' defined but not used [-Wunused-variable] + 739 | static const char *mod_enc_xpm[] = { + | ^~~~~~~~~~~ +../include/qt_xpms.h:682:20: warning: 'lawful_xpm' defined but not used [-Wunused-variable] + 682 | static const char *lawful_xpm[] = { + | ^~~~~~~~~~ +../include/qt_xpms.h:623:20: warning: 'int_xpm' defined but not used [-Wunused-variable] + 623 | static const char *int_xpm[] = { + | ^~~~~~~ +../include/qt_xpms.h:563:20: warning: 'hvy_enc_xpm' defined but not used [-Wunused-variable] + 563 | static const char *hvy_enc_xpm[] = { + | ^~~~~~~~~~~ +../include/qt_xpms.h:501:20: warning: 'hungry_xpm' defined but not used [-Wunused-variable] + 501 | static const char *hungry_xpm[] = { + | ^~~~~~~~~~ +../include/qt_xpms.h:424:20: warning: 'hallu_xpm' defined but not used [-Wunused-variable] + 424 | static const char *hallu_xpm[] = { + | ^~~~~~~~~ +../include/qt_xpms.h:364:20: warning: 'ext_enc_xpm' defined but not used [-Wunused-variable] + 364 | static const char *ext_enc_xpm[] = { + | ^~~~~~~~~~~ +../include/qt_xpms.h:298:20: warning: 'dex_xpm' defined but not used [-Wunused-variable] + 298 | static const char *dex_xpm[] = { + | ^~~~~~~ +../include/qt_xpms.h:238:20: warning: 'confused_xpm' defined but not used [-Wunused-variable] + 238 | static const char *confused_xpm[] = { + | ^~~~~~~~~~~~ +../include/qt_xpms.h:172:20: warning: 'cns_xpm' defined but not used [-Wunused-variable] + 172 | static const char *cns_xpm[] = { + | ^~~~~~~ +../include/qt_xpms.h:116:20: warning: 'chaotic_xpm' defined but not used [-Wunused-variable] + 116 | static const char *chaotic_xpm[] = { + | ^~~~~~~~~~~ +../include/qt_xpms.h:55:20: warning: 'cha_xpm' defined but not used [-Wunused-variable] + 55 | static const char *cha_xpm[] = { + | ^~~~~~~ +../include/qt_xpms.h:3:20: warning: 'blind_xpm' defined but not used [-Wunused-variable] + 3 | static const char *blind_xpm[] = { + | ^~~~~~~~~ +../win/Qt4/qt4msg.cpp: In member function 'virtual void nethack_qt4::NetHackQtMessageWindow::PutStr(int, const QString&)': +../win/Qt4/qt4msg.cpp:144:23: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] + 144 | if (list->count() >= ::iflags.msg_history) + | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4svsel.o ../win/Qt4/qt4svsel.cpp +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4win.o ../win/Qt4/qt4win.cpp +../win/Qt4/qt4plsel.cpp: In constructor 'nethack_qt4::NetHackQtPlayerSelector::NetHackQtPlayerSelector(nethack_qt4::NetHackQtKeyBuffer&)': +../win/Qt4/qt4plsel.cpp:185:18: warning: unused variable 'vbgb' [-Wunused-variable] + 185 | QVBoxLayout* vbgb = new QVBoxLayout(genderbox); + | ^~~~ +../win/Qt4/qt4plsel.cpp:186:18: warning: unused variable 'vbab' [-Wunused-variable] + 186 | QVBoxLayout* vbab = new QVBoxLayout(alignbox); + | ^~~~ +../win/Qt4/qt4main.cpp: In function 'QString nethack_qt4::aboutMsg()': +../win/Qt4/qt4main.cpp:442:16: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] + 442 | msg.sprintf( + | ~~~~~~~~~~~^ + 443 | "Qt NetHack is a version of NetHack built\n" + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 444 | #ifdef KDE + | ~~~~~~~~~~ + 445 | "using KDE and the Qt GUI toolkit.\n" + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 446 | #else + | ~~~~~ + 447 | "using the Qt GUI toolkit.\n" + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 448 | #endif + | ~~~~~~ + 449 | "This is version %d.%d.%d\n\n" + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 450 | "Homepage:\n http://trolls.troll.no/warwick/nethack/\n\n" + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 451 | #ifdef KDE + | ~~~~~~~~~~ + 452 | "KDE:\n http://www.kde.org\n" + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 453 | #endif + | ~~~~~~ + 454 | "Qt:\n http://www.troll.no", + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 455 | VERSION_MAJOR, + | ~~~~~~~~~~~~~~ + 456 | VERSION_MINOR, + | ~~~~~~~~~~~~~~ + 457 | PATCHLEVEL); + | ~~~~~~~~~~~ +In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:47, + from /usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractanimation.h:43, + from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:6, + from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGuiDepends:3, + from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGui:3, + from ../win/Qt4/qt4main.cpp:21: +/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here + 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); + | ^~~~~~~ +../win/Qt4/qt4icon.cpp: In member function 'void nethack_qt4::NetHackQtLabelledIcon::setLabel(const QString&, long int, long int, const QString&)': +../win/Qt4/qt4icon.cpp:74:20: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] + 74 | buf.sprintf("%ld", v); + | ~~~~~~~~~~~^~~~~~~~~~ +In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:47, + from /usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractanimation.h:43, + from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:6, + from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGuiDepends:3, + from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGui:3, + from ../win/Qt4/qt4icon.cpp:18: +/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here + 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); + | ^~~~~~~ In file included from ../win/Qt4/qt4bind.cpp:36: ../win/Qt4/qt4menu.h: In member function 'int nethack_qt4::NetHackQtTextListBox::TotalWidth() const': ../win/Qt4/qt4menu.h:24:34: warning: 'int QFontMetrics::width(const QString&, int) const' is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] @@ -3494,36 +3693,11 @@ /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); | ^~~~~~~ -../win/Qt4/qt4glyph.cpp: In constructor 'nethack_qt4::NetHackQtGlyphs::NetHackQtGlyphs()': -../win/Qt4/qt4glyph.cpp:55:24: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] - 55 | msg.sprintf("Cannot load x11tiles or nhtiles.bmp"); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../win/Qt4/qt4icon.cpp: In member function 'void nethack_qt4::NetHackQtLabelledIcon::setLabel(const QString&, long int, long int, const QString&)': -../win/Qt4/qt4icon.cpp:74:20: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] - 74 | buf.sprintf("%ld", v); - | ~~~~~~~~~~~^~~~~~~~~~ -In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:47, - from /usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractanimation.h:43, - from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:6, - from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGuiDepends:3, - from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGui:3, - from ../win/Qt4/qt4glyph.cpp:21: -/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here - 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); - | ^~~~~~~ -In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:47, - from /usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractanimation.h:43, - from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:6, - from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGuiDepends:3, - from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGui:3, - from ../win/Qt4/qt4icon.cpp:18: -/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here - 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); - | ^~~~~~~ ../win/Qt4/qt4bind.cpp: In member function 'virtual bool nethack_qt4::NetHackQtBind::notify(QObject*, QEvent*)': ../win/Qt4/qt4bind.cpp:682:65: warning: comparison of integer expressions of different signedness: 'QFlags::Int' {aka 'unsigned int'} and 'int' [-Wsign-compare] 682 | && ((key_macro[i].state&key_event->modifiers())==key_macro[i].state)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4xcmd.o ../win/Qt4/qt4xcmd.cpp In file included from ../win/Qt4/qt4menu.cpp:24: ../win/Qt4/qt4menu.h: In member function 'int nethack_qt4::NetHackQtTextListBox::TotalWidth() const': ../win/Qt4/qt4menu.h:24:34: warning: 'int QFontMetrics::width(const QString&, int) const' is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] @@ -3598,39 +3772,25 @@ ../win/Qt4/qt4menu.cpp:395:18: warning: comparison of integer expressions of different signedness: 'const unsigned int' and 'int' [-Wsign-compare] 395 | if (mi.color != -1) { | ~~~~~~~~~^~~~~ +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4yndlg.o ../win/Qt4/qt4yndlg.cpp ../win/Qt4/qt4menu.cpp: In member function 'virtual void nethack_qt4::NetHackQtMenuWindow::keyPressEvent(QKeyEvent*)': ../win/Qt4/qt4menu.cpp:496:36: warning: comparison of integer expressions of different signedness: 'char' and 'unsigned int' [-Wsign-compare] 496 | if (itemlist[i].ch == key || itemlist[i].gch == key) ../win/Qt4/qt4menu.cpp:496:62: warning: comparison of integer expressions of different signedness: 'char' and 'unsigned int' [-Wsign-compare] 496 | if (itemlist[i].ch == key || itemlist[i].gch == key) -../win/Qt4/qt4plsel.cpp: In constructor 'nethack_qt4::NetHackQtPlayerSelector::NetHackQtPlayerSelector(nethack_qt4::NetHackQtKeyBuffer&)': -../win/Qt4/qt4plsel.cpp:185:18: warning: unused variable 'vbgb' [-Wunused-variable] - 185 | QVBoxLayout* vbgb = new QVBoxLayout(genderbox); - | ^~~~ -../win/Qt4/qt4plsel.cpp:186:18: warning: unused variable 'vbab' [-Wunused-variable] - 186 | QVBoxLayout* vbab = new QVBoxLayout(alignbox); - | ^~~~ -../win/Qt4/qt4msg.cpp: In member function 'virtual void nethack_qt4::NetHackQtMessageWindow::PutStr(int, const QString&)': -../win/Qt4/qt4msg.cpp:144:23: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] - 144 | if (list->count() >= ::iflags.msg_history) - | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4streq.o ../win/Qt4/qt4streq.cpp -../win/Qt4/qt4bind.cpp: In static member function 'static void nethack_qt4::NetHackQtBind::qt_init_nhwindows(int*, char**)': -../win/Qt4/qt4bind.cpp:144:12: warning: ignoring return value of 'int seteuid(__uid_t)' declared with attribute 'warn_unused_result' [-Wunused-result] - 144 | seteuid(getuid()); - | ~~~~~~~^~~~~~~~~~ -../win/Qt4/qt4bind.cpp:151:12: warning: ignoring return value of 'int seteuid(__uid_t)' declared with attribute 'warn_unused_result' [-Wunused-result] - 151 | seteuid(gamesuid); - | ~~~~~~~^~~~~~~~~~ -../win/Qt4/qt4map.cpp: In member function 'virtual void nethack_qt4::NetHackQtMapViewport::paintEvent(QPaintEvent*)': -../win/Qt4/qt4map.cpp:121:30: warning: 'int QFontMetrics::width(const QString&, int) const' is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] - 121 | if ( fm.width("M") > qt_settings->glyphs().width() ) - | ~~~~~~~~^~~~~ -In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGui:26, - from ../win/Qt4/qt4map.cpp:20: -/usr/include/x86_64-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here - 106 | int width(const QString &, int len = -1) const; - | ^~~~~ +../win/Qt4/qt4main.cpp: At global scope: +../win/Qt4/qt4main.cpp:419:21: warning: 'nethack_qt4::cast_c_xpm' defined but not used [-Wunused-variable] + 419 | static const char * cast_c_xpm[] = { + | ^~~~~~~~~~ +../win/Qt4/qt4main.cpp:400:21: warning: 'nethack_qt4::cast_b_xpm' defined but not used [-Wunused-variable] + 400 | static const char * cast_b_xpm[] = { + | ^~~~~~~~~~ +../win/Qt4/qt4main.cpp:381:21: warning: 'nethack_qt4::cast_a_xpm' defined but not used [-Wunused-variable] + 381 | static const char * cast_a_xpm[] = { + | ^~~~~~~~~~ +make[3]: Entering directory '/build/nethack-3.6.6/util' +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c ../win/share/tilemap.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o allmain.o allmain.c ../win/Qt4/qt4rip.cpp: In function 'void nethack_qt4::tryload(QPixmap&, const char*)': ../win/Qt4/qt4rip.cpp:44:20: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] 44 | msg.sprintf("Cannot load \"%s\"", fn); @@ -3644,135 +3804,34 @@ /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); | ^~~~~~~ +cc -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -o tilemap tilemap.o +./tilemap +make[3]: Leaving directory '/build/nethack-3.6.6/util' +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o apply.o apply.c +../win/Qt4/qt4bind.cpp: In static member function 'static void nethack_qt4::NetHackQtBind::qt_init_nhwindows(int*, char**)': +../win/Qt4/qt4bind.cpp:144:12: warning: ignoring return value of 'int seteuid(__uid_t)' declared with attribute 'warn_unused_result' [-Wunused-result] + 144 | seteuid(getuid()); + | ~~~~~~~^~~~~~~~~~ +../win/Qt4/qt4bind.cpp:151:12: warning: ignoring return value of 'int seteuid(__uid_t)' declared with attribute 'warn_unused_result' [-Wunused-result] + 151 | seteuid(gamesuid); + | ~~~~~~~^~~~~~~~~~ ../win/Qt4/qt4bind.cpp: At global scope: ../win/Qt4/qt4bind.cpp:722:13: warning: 'void nethack_qt4::Qt_positionbar(char*)' defined but not used [-Wunused-function] 722 | static void Qt_positionbar(char *) {} | ^~~~~~~~~~~~~~ -../win/Qt4/qt4main.cpp: In function 'QString nethack_qt4::aboutMsg()': -../win/Qt4/qt4main.cpp:442:16: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] - 442 | msg.sprintf( - | ~~~~~~~~~~~^ - 443 | "Qt NetHack is a version of NetHack built\n" - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 444 | #ifdef KDE - | ~~~~~~~~~~ - 445 | "using KDE and the Qt GUI toolkit.\n" - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 446 | #else - | ~~~~~ - 447 | "using the Qt GUI toolkit.\n" - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 448 | #endif - | ~~~~~~ - 449 | "This is version %d.%d.%d\n\n" - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 450 | "Homepage:\n http://trolls.troll.no/warwick/nethack/\n\n" - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 451 | #ifdef KDE - | ~~~~~~~~~~ - 452 | "KDE:\n http://www.kde.org\n" - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 453 | #endif - | ~~~~~~ - 454 | "Qt:\n http://www.troll.no", - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 455 | VERSION_MAJOR, - | ~~~~~~~~~~~~~~ - 456 | VERSION_MINOR, - | ~~~~~~~~~~~~~~ - 457 | PATCHLEVEL); - | ~~~~~~~~~~~ -In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:47, - from /usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractanimation.h:43, - from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:6, - from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGuiDepends:3, - from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGui:3, - from ../win/Qt4/qt4main.cpp:21: -/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here - 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); - | ^~~~~~~ -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4svsel.o ../win/Qt4/qt4svsel.cpp -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4win.o ../win/Qt4/qt4win.cpp -In file included from ../win/Qt4/qt4map.cpp:28: -../include/qt_xpms.h: At global scope: -../include/qt_xpms.h:1363:20: warning: 'wis_xpm' defined but not used [-Wunused-variable] - 1363 | static const char *wis_xpm[] = { - | ^~~~~~~ -../include/qt_xpms.h:1304:20: warning: 'stunned_xpm' defined but not used [-Wunused-variable] - 1304 | static const char *stunned_xpm[] = { - | ^~~~~~~~~~~ -../include/qt_xpms.h:1240:20: warning: 'str_xpm' defined but not used [-Wunused-variable] - 1240 | static const char *str_xpm[] = { - | ^~~~~~~ -../include/qt_xpms.h:1180:20: warning: 'slt_enc_xpm' defined but not used [-Wunused-variable] - 1180 | static const char *slt_enc_xpm[] = { - | ^~~~~~~~~~~ -../include/qt_xpms.h:1110:20: warning: 'sick_il_xpm' defined but not used [-Wunused-variable] - 1110 | static const char *sick_il_xpm[] = { - | ^~~~~~~~~~~ -../include/qt_xpms.h:1033:20: warning: 'sick_fp_xpm' defined but not used [-Wunused-variable] - 1033 | static const char *sick_fp_xpm[] = { - | ^~~~~~~~~~~ -../include/qt_xpms.h:963:20: warning: 'satiated_xpm' defined but not used [-Wunused-variable] - 963 | static const char *satiated_xpm[] = { - | ^~~~~~~~~~~~ -../include/qt_xpms.h:860:20: warning: 'ovr_enc_xpm' defined but not used [-Wunused-variable] - 860 | static const char *ovr_enc_xpm[] = { - | ^~~~~~~~~~~ -../include/qt_xpms.h:799:20: warning: 'neutral_xpm' defined but not used [-Wunused-variable] - 799 | static const char *neutral_xpm[] = { - | ^~~~~~~~~~~ -../include/qt_xpms.h:739:20: warning: 'mod_enc_xpm' defined but not used [-Wunused-variable] - 739 | static const char *mod_enc_xpm[] = { - | ^~~~~~~~~~~ -../include/qt_xpms.h:682:20: warning: 'lawful_xpm' defined but not used [-Wunused-variable] - 682 | static const char *lawful_xpm[] = { - | ^~~~~~~~~~ -../include/qt_xpms.h:623:20: warning: 'int_xpm' defined but not used [-Wunused-variable] - 623 | static const char *int_xpm[] = { - | ^~~~~~~ -../include/qt_xpms.h:563:20: warning: 'hvy_enc_xpm' defined but not used [-Wunused-variable] - 563 | static const char *hvy_enc_xpm[] = { - | ^~~~~~~~~~~ -../include/qt_xpms.h:501:20: warning: 'hungry_xpm' defined but not used [-Wunused-variable] - 501 | static const char *hungry_xpm[] = { - | ^~~~~~~~~~ -../include/qt_xpms.h:424:20: warning: 'hallu_xpm' defined but not used [-Wunused-variable] - 424 | static const char *hallu_xpm[] = { - | ^~~~~~~~~ -../include/qt_xpms.h:364:20: warning: 'ext_enc_xpm' defined but not used [-Wunused-variable] - 364 | static const char *ext_enc_xpm[] = { - | ^~~~~~~~~~~ -../include/qt_xpms.h:298:20: warning: 'dex_xpm' defined but not used [-Wunused-variable] - 298 | static const char *dex_xpm[] = { - | ^~~~~~~ -../include/qt_xpms.h:238:20: warning: 'confused_xpm' defined but not used [-Wunused-variable] - 238 | static const char *confused_xpm[] = { - | ^~~~~~~~~~~~ -../include/qt_xpms.h:172:20: warning: 'cns_xpm' defined but not used [-Wunused-variable] - 172 | static const char *cns_xpm[] = { - | ^~~~~~~ -../include/qt_xpms.h:116:20: warning: 'chaotic_xpm' defined but not used [-Wunused-variable] - 116 | static const char *chaotic_xpm[] = { - | ^~~~~~~~~~~ -../include/qt_xpms.h:55:20: warning: 'cha_xpm' defined but not used [-Wunused-variable] - 55 | static const char *cha_xpm[] = { - | ^~~~~~~ -../include/qt_xpms.h:3:20: warning: 'blind_xpm' defined but not used [-Wunused-variable] - 3 | static const char *blind_xpm[] = { - | ^~~~~~~~~ -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4xcmd.o ../win/Qt4/qt4xcmd.cpp -../win/Qt4/qt4main.cpp: At global scope: -../win/Qt4/qt4main.cpp:419:21: warning: 'nethack_qt4::cast_c_xpm' defined but not used [-Wunused-variable] - 419 | static const char * cast_c_xpm[] = { - | ^~~~~~~~~~ -../win/Qt4/qt4main.cpp:400:21: warning: 'nethack_qt4::cast_b_xpm' defined but not used [-Wunused-variable] - 400 | static const char * cast_b_xpm[] = { - | ^~~~~~~~~~ -../win/Qt4/qt4main.cpp:381:21: warning: 'nethack_qt4::cast_a_xpm' defined but not used [-Wunused-variable] - 381 | static const char * cast_a_xpm[] = { - | ^~~~~~~~~~ -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -I. -I/usr/include -c -o qt4yndlg.o ../win/Qt4/qt4yndlg.cpp +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o artifact.o artifact.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o attrib.o attrib.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o ball.o ball.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o bones.o bones.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o botl.o botl.c +botl.c: In function 'parse_status_hl2': +botl.c:2069:12: warning: the comparison will always evaluate as 'true' for the pointer operand in 's + (sizetype)((long unsigned int)sidx * 128)' must not be NULL [-Waddress] + 2069 | while (s[sidx]) { + | ^ +botl.c: In function 'parse_condition': +botl.c:2488:11: warning: the comparison will always evaluate as 'true' for the pointer operand in 's + (sizetype)((long unsigned int)sidx * 128)' must not be NULL [-Waddress] + 2488 | while(s[sidx]) { + | ^ ../win/Qt4/qt4menu.cpp: In member function 'virtual void nethack_qt4::NetHackQtTextWindow::UseRIP(int, time_t)': ../win/Qt4/qt4menu.cpp:670:54: warning: '%s' directive output may be truncated writing up to 31 bytes into a region of size 17 [-Wformat-truncation=] 670 | snprintf(rip_line[NAME_LINE], STONE_LINE_LEN+1, "%s", plname); @@ -3791,26 +3850,6 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -make[3]: Entering directory '/build/nethack-3.6.6/util' -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c ../win/share/tilemap.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o allmain.o allmain.c -cc -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -o tilemap tilemap.o -./tilemap -make[3]: Leaving directory '/build/nethack-3.6.6/util' -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o apply.o apply.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o artifact.o artifact.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o attrib.o attrib.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o ball.o ball.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o bones.o bones.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o botl.o botl.c -botl.c: In function 'parse_status_hl2': -botl.c:2069:12: warning: the comparison will always evaluate as 'true' for the pointer operand in 's + (sizetype)((long unsigned int)sidx * 128)' must not be NULL [-Waddress] - 2069 | while (s[sidx]) { - | ^ -botl.c: In function 'parse_condition': -botl.c:2488:11: warning: the comparison will always evaluate as 'true' for the pointer operand in 's + (sizetype)((long unsigned int)sidx * 128)' must not be NULL [-Waddress] - 2488 | while(s[sidx]) { - | ^ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o cmd.o cmd.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o dbridge.o dbridge.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o decl.o decl.c @@ -3836,11 +3875,11 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o display.o display.c cmd.c: In function 'attributes_enlightenment': cmd.c:2727:20: warning: '__builtin_strncpy' output truncated before terminating nul copying 12 bytes from a string of the same length [-Wstringop-truncation] 2727 | (void) strncpy(buf, " if not for ", 12); | ^ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o display.o display.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o do.o do.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o do_name.o do_name.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o do_wear.o do_wear.c @@ -3862,19 +3901,6 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -botl.c: In function 'status_hilite_menu_add': -botl.c:3385:38: warning: ' or ' directive writing 4 bytes into a region of size between 1 and 80 [-Wformat-overflow=] - 3385 | Sprintf(obuf, "%s or %s", - | ^~~~ -In function 'sprintf', - inlined from 'status_hilite_menu_add' at botl.c:3385:21: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 5 and 163 bytes into a destination of size 80 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ do_name.c: In function 'getpos': do_name.c:190:31: warning: '%s' directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] 190 | Sprintf(sbuf, "Type a %s when you are at the right place.", kbuf); @@ -3903,6 +3929,81 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o dog.o dog.c +../win/Qt4/qt4stat.cpp: In member function 'void nethack_qt4::NetHackQtStatusWindow::updateStats()': +../win/Qt4/qt4stat.cpp:376:20: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] + 376 | buf.sprintf("STR:%d",ACURR(A_STR)-100); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:47, + from /usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractanimation.h:43, + from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:6, + from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGuiDepends:3, + from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGui:3, + from ../win/Qt4/qt4stat.cpp:20: +/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here + 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); + | ^~~~~~~ +../win/Qt4/qt4stat.cpp:378:20: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] + 378 | buf.sprintf("STR:18/**"); + | ~~~~~~~~~~~^~~~~~~~~~~~~ +/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here + 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); + | ^~~~~~~ +../win/Qt4/qt4stat.cpp:380:20: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] + 380 | buf.sprintf("STR:18/%02d",ACURR(A_STR)-18); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here + 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); + | ^~~~~~~ +../win/Qt4/qt4stat.cpp:382:20: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] + 382 | buf.sprintf("STR:%d",ACURR(A_STR)); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here + 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); + | ^~~~~~~ +../win/Qt4/qt4stat.cpp:437:17: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] + 437 | buf2.sprintf("%s the %s", plname, buf.toLatin1().constData()); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here + 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); + | ^~~~~~~ +../win/Qt4/qt4stat.cpp:444:20: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] + 444 | buf.sprintf("%s, level ", dungeons[u.uz.dnum].dname); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here + 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); + | ^~~~~~~ +../win/Qt4/qt4stat.cpp:453:20: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] + 453 | buf.sprintf("/%d", u.mhmax); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~ +/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here + 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); + | ^~~~~~~ +../win/Qt4/qt4stat.cpp:459:20: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] + 459 | buf.sprintf("/%d", u.uhpmax); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~ +/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here + 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); + | ^~~~~~~ +../win/Qt4/qt4stat.cpp:463:16: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] + 463 | buf.sprintf("/%d", u.uenmax); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~ +/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here + 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); + | ^~~~~~~ +botl.c: In function 'status_hilite_menu_add': +botl.c:3385:38: warning: ' or ' directive writing 4 bytes into a region of size between 1 and 80 [-Wformat-overflow=] + 3385 | Sprintf(obuf, "%s or %s", + | ^~~~ +In function 'sprintf', + inlined from 'status_hilite_menu_add' at botl.c:3385:21: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 5 and 163 bytes into a destination of size 80 + 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 31 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 32 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ cmd.c: In function 'enlght_halfdmg': cmd.c:1653:24: warning: '%s' directive writing up to 255 bytes into a region of size 247 [-Wformat-overflow=] 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); @@ -3950,11 +4051,9 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o dog.o dog.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o dogmove.o dogmove.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o dokick.o dokick.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o dothrow.o dothrow.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o drawing.o drawing.c dogmove.c: In function 'droppables': dogmove.c:120:1: warning: function may return address of local variable [-Wreturn-local-addr] 120 | } @@ -3966,7 +4065,24 @@ dogmove.c:29:28: note: declared here dogmove.c:29:28: note: declared here dogmove.c:29:28: note: declared here +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o drawing.o drawing.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o dungeon.o dungeon.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o eat.o eat.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o end.o end.c +In file included from ../win/Qt4/qt4stat.cpp:28: +../include/qt_xpms.h: At global scope: +../include/qt_xpms.h:949:20: warning: 'pile_mark_xpm' defined but not used [-Wunused-variable] + 949 | static const char *pile_mark_xpm[] = { + | ^~~~~~~~~~~~~ +../include/qt_xpms.h:936:20: warning: 'pet_mark_small_xpm' defined but not used [-Wunused-variable] + 936 | static const char *pet_mark_small_xpm[] = { + | ^~~~~~~~~~~~~~~~~~ +../include/qt_xpms.h:920:20: warning: 'pet_mark_xpm' defined but not used [-Wunused-variable] + 920 | static const char *pet_mark_xpm[] = { + | ^~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o engrave.o engrave.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o exper.o exper.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o explode.o explode.c cmd.c: In function 'enlightenment': cmd.c:1653:24: warning: '%s' directive writing up to 255 bytes into a region of size between 246 and 247 [-Wformat-overflow=] 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); @@ -4087,70 +4203,43 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o eat.o eat.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o end.o end.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o engrave.o engrave.c -../win/Qt4/qt4stat.cpp: In member function 'void nethack_qt4::NetHackQtStatusWindow::updateStats()': -../win/Qt4/qt4stat.cpp:376:20: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] - 376 | buf.sprintf("STR:%d",ACURR(A_STR)-100); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:47, - from /usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractanimation.h:43, - from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:6, - from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGuiDepends:3, - from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGui:3, - from ../win/Qt4/qt4stat.cpp:20: -/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here - 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); - | ^~~~~~~ -../win/Qt4/qt4stat.cpp:378:20: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] - 378 | buf.sprintf("STR:18/**"); - | ~~~~~~~~~~~^~~~~~~~~~~~~ -/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here - 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); - | ^~~~~~~ -../win/Qt4/qt4stat.cpp:380:20: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] - 380 | buf.sprintf("STR:18/%02d",ACURR(A_STR)-18); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here - 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); - | ^~~~~~~ -../win/Qt4/qt4stat.cpp:382:20: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] - 382 | buf.sprintf("STR:%d",ACURR(A_STR)); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here - 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); - | ^~~~~~~ -../win/Qt4/qt4stat.cpp:437:17: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] - 437 | buf2.sprintf("%s the %s", plname, buf.toLatin1().constData()); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here - 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); - | ^~~~~~~ -../win/Qt4/qt4stat.cpp:444:20: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] - 444 | buf.sprintf("%s, level ", dungeons[u.uz.dnum].dname); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here - 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); - | ^~~~~~~ -../win/Qt4/qt4stat.cpp:453:20: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] - 453 | buf.sprintf("/%d", u.mhmax); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~ -/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here - 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); - | ^~~~~~~ -../win/Qt4/qt4stat.cpp:459:20: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] - 459 | buf.sprintf("/%d", u.uhpmax); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~ -/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here - 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); - | ^~~~~~~ -../win/Qt4/qt4stat.cpp:463:16: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] - 463 | buf.sprintf("/%d", u.uenmax); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~ -/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here - 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); - | ^~~~~~~ +explode.c: In function 'explode': +explode.c:539:67: warning: '%s' directive writing up to 255 bytes into a region of size 236 [-Wformat-overflow=] + 539 | Sprintf(killer.name, "caught %sself in %s own %s", uhim(), + | ^~ +In file included from /usr/include/stdio.h:906, + from ../include/global.h:9, + from ../include/config.h:588, + from ../include/hack.h:10, + from explode.c:5: +In function 'sprintf', + inlined from 'explode' at explode.c:539:21: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 21 or more bytes (assuming 276) into a destination of size 256 + 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 31 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 32 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o extralev.o extralev.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o files.o files.c +engrave.c: In function 'doengrave': +engrave.c:1154:12: warning: '__builtin___strncat_chk' output may be truncated copying between 0 and 255 bytes from a string of length 255 [-Wstringop-truncation] + 1154 | (void) strncat(buf, ebuf, BUFSZ - (int) strlen(buf) - 1); + | ^ +files.c: In function 'save_savefile_name': +files.c:982:12: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] + 982 | (void) write(fd, (genericptr_t) SAVEF, sizeof(SAVEF)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +files.c: In function 'docompress_file': +files.c:1400:16: warning: ignoring return value of 'setgid' declared with attribute 'warn_unused_result' [-Wunused-result] + 1400 | (void) setgid(getgid()); + | ^~~~~~~~~~~~~~~~ +files.c:1401:16: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] + 1401 | (void) setuid(getuid()); + | ^~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o fountain.o fountain.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o hack.o hack.c cmd.c: In function 'show_conduct': cmd.c:1653:24: warning: '%s' directive writing up to 255 bytes into a region of size between 246 and 251 [-Wformat-overflow=] 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); @@ -4249,11 +4338,6 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o exper.o exper.c -engrave.c: In function 'doengrave': -engrave.c:1154:12: warning: '__builtin___strncat_chk' output may be truncated copying between 0 and 255 bytes from a string of length 255 [-Wstringop-truncation] - 1154 | (void) strncat(buf, ebuf, BUFSZ - (int) strlen(buf) - 1); - | ^ ../win/Qt4/qt4streq.cpp: In member function 'bool nethack_qt4::NetHackQtStringRequestor::Get(char*, int)': ../win/Qt4/qt4streq.cpp:81:35: warning: 'int QFontMetrics::width(const QString&, int) const' is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] 81 | resize(fontMetrics().width(prompt.text())+50,fontMetrics().height()*6); @@ -4269,66 +4353,13 @@ /usr/include/x86_64-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here 106 | int width(const QString &, int len = -1) const; | ^~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o explode.o explode.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o extralev.o extralev.c -../win/Qt4/qt4xcmd.cpp: In constructor 'nethack_qt4::NetHackQtExtCmdRequestor::NetHackQtExtCmdRequestor(QWidget*)': -../win/Qt4/qt4xcmd.cpp:56:41: warning: 'int QFontMetrics::width(const QString&, int) const' is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] - 56 | butw = std::max(butw,30+fm.width(extcmdlist[i].ef_txt)); - | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGui:26, - from ../win/Qt4/qt4xcmd.cpp:19: -/usr/include/x86_64-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here - 106 | int width(const QString &, int len = -1) const; - | ^~~~~ -In file included from ../win/Qt4/qt4stat.cpp:28: -../include/qt_xpms.h: At global scope: -../include/qt_xpms.h:949:20: warning: 'pile_mark_xpm' defined but not used [-Wunused-variable] - 949 | static const char *pile_mark_xpm[] = { - | ^~~~~~~~~~~~~ -../include/qt_xpms.h:936:20: warning: 'pet_mark_small_xpm' defined but not used [-Wunused-variable] - 936 | static const char *pet_mark_small_xpm[] = { - | ^~~~~~~~~~~~~~~~~~ -../include/qt_xpms.h:920:20: warning: 'pet_mark_xpm' defined but not used [-Wunused-variable] - 920 | static const char *pet_mark_xpm[] = { - | ^~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o hacklib.o hacklib.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o invent.o invent.c ../win/Qt4/qt4svsel.cpp: In constructor 'nethack_qt4::NetHackQtSavedGameSelector::NetHackQtSavedGameSelector(const char**)': ../win/Qt4/qt4svsel.cpp:63:18: warning: unused variable 'bgl' [-Wunused-variable] 63 | QVBoxLayout *bgl = new QVBoxLayout(box); | ^~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o files.o files.c -explode.c: In function 'explode': -explode.c:539:67: warning: '%s' directive writing up to 255 bytes into a region of size 236 [-Wformat-overflow=] - 539 | Sprintf(killer.name, "caught %sself in %s own %s", uhim(), - | ^~ -In file included from /usr/include/stdio.h:906, - from ../include/global.h:9, - from ../include/config.h:588, - from ../include/hack.h:10, - from explode.c:5: -In function 'sprintf', - inlined from 'explode' at explode.c:539:21: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 21 or more bytes (assuming 276) into a destination of size 256 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o fountain.o fountain.c -files.c: In function 'save_savefile_name': -files.c:982:12: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] - 982 | (void) write(fd, (genericptr_t) SAVEF, sizeof(SAVEF)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -files.c: In function 'docompress_file': -files.c:1400:16: warning: ignoring return value of 'setgid' declared with attribute 'warn_unused_result' [-Wunused-result] - 1400 | (void) setgid(getgid()); - | ^~~~~~~~~~~~~~~~ -files.c:1401:16: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] - 1401 | (void) setuid(getuid()); - | ^~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o hack.o hack.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o hacklib.o hacklib.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o invent.o invent.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o light.o light.c In file included from ../win/Qt4/qt4win.cpp:72: ../win/Qt4/qt4menu.h: In member function 'int nethack_qt4::NetHackQtTextListBox::TotalWidth() const': ../win/Qt4/qt4menu.h:24:34: warning: 'int QFontMetrics::width(const QString&, int) const' is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] @@ -4339,7 +4370,6 @@ /usr/include/x86_64-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here 106 | int width(const QString &, int len = -1) const; | ^~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o light.o light.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o lock.o lock.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o mail.o mail.c hacklib.c: In function 'yyyymmddhhmmss': @@ -4364,9 +4394,15 @@ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o makemon.o makemon.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o mapglyph.o mapglyph.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o mcastu.o mcastu.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o mhitm.o mhitm.c +../win/Qt4/qt4xcmd.cpp: In constructor 'nethack_qt4::NetHackQtExtCmdRequestor::NetHackQtExtCmdRequestor(QWidget*)': +../win/Qt4/qt4xcmd.cpp:56:41: warning: 'int QFontMetrics::width(const QString&, int) const' is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] + 56 | butw = std::max(butw,30+fm.width(extcmdlist[i].ef_txt)); + | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGui:26, + from ../win/Qt4/qt4xcmd.cpp:19: +/usr/include/x86_64-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here + 106 | int width(const QString &, int len = -1) const; + | ^~~~~ ../win/Qt4/qt4yndlg.cpp: In member function 'char nethack_qt4::NetHackQtYnDialog::Exec()': ../win/Qt4/qt4yndlg.cpp:117:58: warning: 'QString::null' is deprecated: use QString() [-Wdeprecated-declarations] 117 | QGroupBox *group = new QGroupBox(bigq ? QString::null : qlabel, this); @@ -4396,9 +4432,12 @@ /usr/include/x86_64-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here 106 | int width(const QString &, int len = -1) const; | ^~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o mapglyph.o mapglyph.c ../win/Qt4/qt4yndlg.cpp:47:9: warning: variable 'ch_per_line' set but not used [-Wunused-but-set-variable] 47 | int ch_per_line=6; | ^~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o mcastu.o mcastu.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o mhitm.o mhitm.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o mhitu.o mhitu.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o minion.o minion.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o mklev.o mklev.c @@ -4420,7 +4459,12 @@ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o pickup.o pickup.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o pline.o pline.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o polyself.o polyself.c +pager.c: In function 'checkfile.constprop': +pager.c:652:16: warning: '__builtin_strncpy' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation] + 652 | (void) strncpy(dbase_str += 2, "wet", 3); /* skip "mo" replace "ist" */ + | ^ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o potion.o potion.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o pray.o pray.c pline.c: In function 'vpline': pline.c:129:9: warning: variable 'vlen' set but not used [-Wunused-but-set-variable] 129 | int vlen = 0; @@ -4433,15 +4477,11 @@ pline.c:162:16: warning: '__builtin_strncpy' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation] 162 | (void) strncpy(pbuf + BUFSZ - 1 - 6, "...", 3); | ^ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o pray.o pray.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o priest.o priest.c -pager.c: In function 'checkfile.constprop': -pager.c:652:16: warning: '__builtin_strncpy' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation] - 652 | (void) strncpy(dbase_str += 2, "wet", 3); /* skip "mo" replace "ist" */ - | ^ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o quest.o quest.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o questpgr.o questpgr.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o read.o read.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o rect.o rect.c objnam.c: In function 'mshot_xname': objnam.c:76:12: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 76 | (void) strncpy(s, pref, i); /* do not copy trailing 0 */ @@ -4451,8 +4491,6 @@ objnam.c:69:28: note: length computed here 69 | register int i = (int) strlen(pref); | ^~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o rect.o rect.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o region.o region.c objnam.c: In function 'doname_base': objnam.c:76:12: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 76 | (void) strncpy(s, pref, i); /* do not copy trailing 0 */ @@ -4462,28 +4500,8 @@ objnam.c:69:28: note: length computed here 69 | register int i = (int) strlen(pref); | ^~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o region.o region.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o restore.o restore.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o rip.o rip.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o rnd.o rnd.c -objnam.c: In function 'aobjnam': -objnam.c:76:12: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] - 76 | (void) strncpy(s, pref, i); /* do not copy trailing 0 */ - | ^ -In function 'strprepend', - inlined from 'aobjnam' at objnam.c:1781:14: -objnam.c:69:28: note: length computed here - 69 | register int i = (int) strlen(pref); - | ^~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o role.o role.c -restore.c: In function 'get_plname_from_file': -restore.c:1214:12: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] - 1214 | (void) read(fd, (genericptr_t) &pltmpsiz, sizeof(pltmpsiz)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -restore.c:1215:12: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] - 1215 | (void) read(fd, (genericptr_t) plbuf, pltmpsiz); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o rumors.o rumors.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o save.o save.c options.c: In function 'option_help': options.c:6279:28: warning: ' - ' directive writing 3 bytes into a region of size between 1 and 236 [-Wformat-overflow=] 6279 | Sprintf(buf, "%-20s - %s%c", buf2, compopt[i].descr, @@ -4502,6 +4520,36 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ +objnam.c: In function 'aobjnam': +objnam.c:76:12: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] + 76 | (void) strncpy(s, pref, i); /* do not copy trailing 0 */ + | ^ +In function 'strprepend', + inlined from 'aobjnam' at objnam.c:1781:14: +objnam.c:69:28: note: length computed here + 69 | register int i = (int) strlen(pref); + | ^~~~~~~~~~~~ +polyself.c: In function 'polyself': +polyself.c:496:26: warning: array subscript -1 is below array bounds of 'struct mvitals[382]' [-Warray-bounds] + 496 | if (!(mvitals[mntmp].mvflags & G_GENOD)) { + | ~~~~~~~^~~~~~~ +In file included from ../include/hack.h:170, + from polyself.c:22: +../include/decl.h:274:3: note: while referencing 'mvitals' + 274 | } mvitals[NUMMONS]; + | ^~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o rip.o rip.c +restore.c: In function 'get_plname_from_file': +restore.c:1214:12: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] + 1214 | (void) read(fd, (genericptr_t) &pltmpsiz, sizeof(pltmpsiz)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +restore.c:1215:12: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] + 1215 | (void) read(fd, (genericptr_t) plbuf, pltmpsiz); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o rnd.o rnd.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o role.o role.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o rumors.o rumors.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o save.o save.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o shk.o shk.c save.c: In function 'savestateinlock': save.c:401:16: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] @@ -4513,19 +4561,11 @@ save.c:422:20: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 422 | (void) write(fd, (genericptr_t) &currlev, sizeof currlev); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -polyself.c: In function 'polyself': -polyself.c:496:26: warning: array subscript -1 is below array bounds of 'struct mvitals[382]' [-Warray-bounds] - 496 | if (!(mvitals[mntmp].mvflags & G_GENOD)) { - | ~~~~~~~^~~~~~~ -In file included from ../include/hack.h:170, - from polyself.c:22: -../include/decl.h:274:3: note: while referencing 'mvitals' - 274 | } mvitals[NUMMONS]; - | ^~~~~~~ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o shknam.o shknam.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o sit.o sit.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o sounds.o sounds.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o sp_lev.o sp_lev.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o spell.o spell.c potion.c: In function 'potionhit': potion.c:1406:41: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] 1406 | Sprintf(saddle_glows, "%s %s", buf, aobjnam(saddle, "glow")); @@ -4557,7 +4597,8 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o spell.o spell.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o sys.o sys.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o steal.o steal.c sounds.c: In function 'domonnoise': sounds.c:622:40: warning: array subscript [0, 1] is outside array bounds of 'const char * const[2]' [-Warray-bounds] 622 | verbl_msg = vampmsg[vampindex]; @@ -4565,8 +4606,6 @@ sounds.c:592:38: note: while referencing 'vampmsg' 592 | static const char *const vampmsg[] = { | ^~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o sys.o sys.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o steal.o steal.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o steed.o steed.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o teleport.o teleport.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o timeout.o timeout.c @@ -4575,6 +4614,7 @@ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o trap.o trap.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o u_init.o u_init.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o uhitm.o uhitm.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o vault.o vault.c sounds.c: In function 'add_sound_mapping': sounds.c:1135:31: warning: '%s' directive writing up to 254 bytes into a region of size between 1 and 255 [-Wformat-overflow=] 1135 | Sprintf(filespec, "%s/%s", sounddir, filename); @@ -4593,13 +4633,26 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o vault.o vault.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o vision.o vision.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o vis_tab.o vis_tab.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o tile.o tile.c /bin/sh ../sys/unix/gitinfo.sh 1 #before 'makedefs -v' ../util/makedefs -v cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia -DQT_NETWORK_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -c -o version.o version.c +In file included from ../include/hack.h:216, + from sp_lev.c:12: +In function 'create_monster', + inlined from 'spo_monster' at sp_lev.c:3108:5: +../include/rm.h:659:44: warning: array subscript -1 is below array bounds of 'struct monst *[80][21]' [-Warray-bounds] + 659 | #define remove_monster(x, y) level.monsters[x][y] = (struct monst *) 0 + | ~~~~~~~~~~~~~~^~~ +sp_lev.c:1705:25: note: in expansion of macro 'remove_monster' + 1705 | remove_monster(x, y); + | ^~~~~~~~~~~~~~ +../include/rm.h: In function 'spo_monster': +../include/rm.h:596:19: note: while referencing 'monsters' + 596 | struct monst *monsters[COLNO][ROWNO]; + | ^~~~~~~~ version.c: In function 'early_version_info': version.c:187:24: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] 187 | Sprintf(buf2, "%s\n", buf); @@ -4635,20 +4688,6 @@ options.c:4692:28: warning: '__builtin_strncat' output may be truncated copying between 0 and 255 bytes from a string of length 255 [-Wstringop-truncation] 4692 | (void) strncat(eos(buf), abuf, | ^ -In file included from ../include/hack.h:216, - from sp_lev.c:12: -In function 'create_monster', - inlined from 'spo_monster' at sp_lev.c:3108:5: -../include/rm.h:659:44: warning: array subscript -1 is below array bounds of 'struct monst *[80][21]' [-Warray-bounds] - 659 | #define remove_monster(x, y) level.monsters[x][y] = (struct monst *) 0 - | ~~~~~~~~~~~~~~^~~ -sp_lev.c:1705:25: note: in expansion of macro 'remove_monster' - 1705 | remove_monster(x, y); - | ^~~~~~~~~~~~~~ -../include/rm.h: In function 'spo_monster': -../include/rm.h:596:19: note: while referencing 'monsters' - 596 | struct monst *monsters[COLNO][ROWNO]; - | ^~~~~~~~ Linking nethack-qt. g++ -g -O2 -ffile-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -o nethack-qt monst.o objects.o allmain.o alloc.o apply.o artifact.o attrib.o ball.o bones.o botl.o cmd.o dbridge.o decl.o detect.o dig.o display.o dlb.o do.o do_name.o do_wear.o dog.o dogmove.o dokick.o dothrow.o drawing.o dungeon.o eat.o end.o engrave.o exper.o explode.o extralev.o files.o fountain.o hack.o hacklib.o invent.o isaac64.o light.o lock.o mail.o makemon.o mapglyph.o mcastu.o mhitm.o mhitu.o minion.o mklev.o mkmap.o mkmaze.o mkobj.o mkroom.o mon.o mondata.o monmove.o mplayer.o mthrowu.o muse.o music.o o_init.o objnam.o options.o pager.o pickup.o pline.o polyself.o potion.o pray.o priest.o quest.o questpgr.o read.o rect.o region.o restore.o rip.o rnd.o role.o rumors.o save.o shk.o shknam.o sit.o sounds.o sp_lev.o spell.o sys.o steal.o steed.o teleport.o timeout.o topten.o track.o trap.o u_init.o uhitm.o vault.o vision.o vis_tab.o weapon.o were.o wield.o windows.o wizard.o worm.o worn.o write.o zap.o posixregex.o ioctl.o unixmain.o unixtty.o unixunix.o unixres.o qt4bind.o qt4click.o qt4clust.o qt4delay.o qt4glyph.o qt4icon.o qt4inv.o qt4key.o qt4line.o qt4main.o qt4map.o qt4menu.o qt4msg.o qt4plsel.o qt4rip.o qt4set.o qt4stat.o qt4str.o qt4streq.o qt4svsel.o qt4win.o qt4xcmd.o qt4yndlg.o tile.o version.o `pkg-config Qt5Gui Qt5Widgets Qt5Multimedia --libs` nethack-qt is up to date. @@ -4895,14 +4934,14 @@ dh_gencontrol dh_md5sums dh_builddeb -dpkg-deb: building package 'nethack-qt-dbgsym' in '../nethack-qt-dbgsym_3.6.6-3_amd64.deb'. -dpkg-deb: building package 'nethack-x11-dbgsym' in '../nethack-x11-dbgsym_3.6.6-3_amd64.deb'. dpkg-deb: building package 'nethack-common-dbgsym' in '../nethack-common-dbgsym_3.6.6-3_amd64.deb'. dpkg-deb: building package 'nethack-console-dbgsym' in '../nethack-console-dbgsym_3.6.6-3_amd64.deb'. +dpkg-deb: building package 'nethack-x11-dbgsym' in '../nethack-x11-dbgsym_3.6.6-3_amd64.deb'. +dpkg-deb: building package 'nethack-qt-dbgsym' in '../nethack-qt-dbgsym_3.6.6-3_amd64.deb'. dpkg-deb: building package 'nethack-console' in '../nethack-console_3.6.6-3_amd64.deb'. +dpkg-deb: building package 'nethack-common' in '../nethack-common_3.6.6-3_amd64.deb'. dpkg-deb: building package 'nethack-qt' in '../nethack-qt_3.6.6-3_amd64.deb'. dpkg-deb: building package 'nethack-x11' in '../nethack-x11_3.6.6-3_amd64.deb'. -dpkg-deb: building package 'nethack-common' in '../nethack-common_3.6.6-3_amd64.deb'. dpkg-genbuildinfo --build=binary -O../nethack_3.6.6-3_amd64.buildinfo dpkg-genchanges --build=binary -O../nethack_3.6.6-3_amd64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -4910,12 +4949,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/1433531/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/1433531/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/2125879 and its subdirectories -I: Current time: Thu Apr 27 02:21:16 -12 2023 -I: pbuilder-time-stamp: 1682605276 +I: removing directory /srv/workspace/pbuilder/1433531 and its subdirectories +I: Current time: Thu May 30 10:50:22 +14 2024 +I: pbuilder-time-stamp: 1717015822