Diff of the two buildlogs: -- --- b1/build.log 2023-04-21 20:57:30.769492344 +0000 +++ b2/build.log 2023-04-21 21:01:22.323233418 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Thu May 23 15:16:35 -12 2024 -I: pbuilder-time-stamp: 1716520595 +I: Current time: Sat Apr 22 10:57:33 +14 2023 +I: pbuilder-time-stamp: 1682110653 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 [./rtorrent_0.9.8.orig.tar.gz] I: copying [./rtorrent_0.9.8-1.debian.tar.xz] I: Extracting source -gpgv: Signature made Sat Dec 28 21:59:29 2019 -12 +gpgv: Signature made Sun Dec 29 23:59:29 2019 +14 gpgv: using RSA key FD2F2DC58470E303F77975A34A00F348AF74DD02 gpgv: issuer "noodles@earth.li" gpgv: Can't check signature: No public key @@ -26,135 +26,167 @@ dpkg-source: info: unpacking rtorrent_0.9.8-1.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/3108024/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/122432/tmp/hooks/D01_modify_environment starting +debug: Running on ionos11-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 Apr 22 10:57 /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/122432/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/122432/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=16' - 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=15' + 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='44ef0e690d3740c288182d29cb3b5364' - 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='3108024' - PS1='# ' - PS2='> ' + INVOCATION_ID=9aa276f7dec14cdaae94c40a47f5b313 + 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=122432 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.GFK2Fpim/pbuilderrc_TKyD --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.GFK2Fpim/b1 --logfile b1/build.log rtorrent_0.9.8-1.dsc' - SUDO_GID='110' - SUDO_UID='105' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://85.184.249.68: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.GFK2Fpim/pbuilderrc_FOkZ --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.GFK2Fpim/b2 --logfile b2/build.log --extrapackages usrmerge rtorrent_0.9.8-1.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://78.137.99.97:3128 I: uname -a - Linux ionos5-amd64 6.1.0-0.deb11.5-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.12-1~bpo11+1 (2023-03-05) x86_64 GNU/Linux + Linux i-capture-the-hostname 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux I: ls -l /bin total 5632 - -rwxr-xr-x 1 root root 1265648 Feb 12 2023 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 2023 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 2023 dmesg - lrwxrwxrwx 1 root root 8 Dec 19 2022 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Dec 19 2022 domainname -> hostname - -rwxr-xr-x 1 root root 43856 Sep 20 2022 echo - -rwxr-xr-x 1 root root 41 Jan 24 2023 egrep - -rwxr-xr-x 1 root root 35664 Sep 20 2022 false - -rwxr-xr-x 1 root root 41 Jan 24 2023 fgrep - -rwxr-xr-x 1 root root 85600 Mar 22 2023 findmnt - -rwsr-xr-x 1 root root 35128 Mar 22 2023 fusermount - -rwxr-xr-x 1 root root 203152 Jan 24 2023 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 2022 hostname - -rwxr-xr-x 1 root root 72824 Sep 20 2022 ln - -rwxr-xr-x 1 root root 53024 Mar 23 2023 login - -rwxr-xr-x 1 root root 151344 Sep 20 2022 ls - -rwxr-xr-x 1 root root 207168 Mar 22 2023 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 2023 more - -rwsr-xr-x 1 root root 59704 Mar 22 2023 mount - -rwxr-xr-x 1 root root 18744 Mar 22 2023 mountpoint - -rwxr-xr-x 1 root root 142968 Sep 20 2022 mv - lrwxrwxrwx 1 root root 8 Dec 19 2022 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Apr 2 2023 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 43952 Sep 20 2022 pwd - lrwxrwxrwx 1 root root 4 Feb 12 2023 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 2022 run-parts - -rwxr-xr-x 1 root root 126424 Jan 5 2023 sed - lrwxrwxrwx 1 root root 4 Jan 5 2023 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 2023 su - -rwxr-xr-x 1 root root 39824 Sep 20 2022 sync - -rwxr-xr-x 1 root root 531984 Apr 6 2023 tar - -rwxr-xr-x 1 root root 14520 Nov 2 2022 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 2023 ulockmgr_server - -rwsr-xr-x 1 root root 35128 Mar 22 2023 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 2023 wdctl - lrwxrwxrwx 1 root root 8 Dec 19 2022 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/3108024/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1265648 Feb 13 10:05 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 03:20 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 00:02 dmesg + lrwxrwxrwx 1 root root 8 Dec 20 03:33 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Dec 20 03:33 domainname -> hostname + -rwxr-xr-x 1 root root 43856 Sep 21 2022 echo + -rwxr-xr-x 1 root root 41 Jan 25 04:43 egrep + -rwxr-xr-x 1 root root 35664 Sep 21 2022 false + -rwxr-xr-x 1 root root 41 Jan 25 04:43 fgrep + -rwxr-xr-x 1 root root 85600 Mar 24 00:02 findmnt + -rwsr-xr-x 1 root root 35128 Mar 23 22:35 fusermount + -rwxr-xr-x 1 root root 203152 Jan 25 04:43 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 03:33 hostname + -rwxr-xr-x 1 root root 72824 Sep 21 2022 ln + -rwxr-xr-x 1 root root 53024 Mar 24 02:40 login + -rwxr-xr-x 1 root root 151344 Sep 21 2022 ls + -rwxr-xr-x 1 root root 207168 Mar 24 00:02 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 00:02 more + -rwsr-xr-x 1 root root 59704 Mar 24 00:02 mount + -rwxr-xr-x 1 root root 18744 Mar 24 00:02 mountpoint + -rwxr-xr-x 1 root root 142968 Sep 21 2022 mv + lrwxrwxrwx 1 root root 8 Dec 20 03:33 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Apr 3 20:25 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 43952 Sep 21 2022 pwd + lrwxrwxrwx 1 root root 4 Feb 13 10:05 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 06:31 run-parts + -rwxr-xr-x 1 root root 126424 Jan 6 09:55 sed + lrwxrwxrwx 1 root root 9 Apr 22 10:57 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 00:02 su + -rwxr-xr-x 1 root root 39824 Sep 21 2022 sync + -rwxr-xr-x 1 root root 531984 Apr 7 04:25 tar + -rwxr-xr-x 1 root root 14520 Nov 3 06:31 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 22:35 ulockmgr_server + -rwsr-xr-x 1 root root 35128 Mar 24 00:02 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 00:02 wdctl + lrwxrwxrwx 1 root root 8 Dec 20 03:33 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/122432/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -263,7 +295,7 @@ Get: 55 http://deb.debian.org/debian bookworm/main amd64 libtorrent-dev amd64 0.13.8-2+b1 [67.4 kB] Get: 56 http://deb.debian.org/debian bookworm/main amd64 libxmlrpc-core-c3 amd64 1.33.14-11 [152 kB] Get: 57 http://deb.debian.org/debian bookworm/main amd64 libxmlrpc-core-c3-dev amd64 1.33.14-11 [224 kB] -Fetched 22.7 MB in 0s (67.2 MB/s) +Fetched 22.7 MB in 1s (44.2 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package readline-common. (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.) @@ -505,8 +537,19 @@ Writing extended state information... Building tag database... -> Finished parsing the build-deps +Reading package lists... +Building dependency tree... +Reading state information... +usrmerge is already the newest version (35). +0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/rtorrent-0.9.8/ && 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 > ../rtorrent_0.9.8-1_source.changes +I: user script /srv/workspace/pbuilder/122432/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/122432/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/rtorrent-0.9.8/ && 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 > ../rtorrent_0.9.8-1_source.changes dpkg-buildpackage: info: source package rtorrent dpkg-buildpackage: info: source version 0.9.8-1 dpkg-buildpackage: info: source distribution unstable @@ -666,7 +709,7 @@ ./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-option-checking --disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu --libexecdir=\${prefix}/lib/x86_64-linux-gnu --disable-maintainer-mode --disable-dependency-tracking --with-xmlrpc-c --enable-ipv6 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes -checking for a race-free mkdir -p... /bin/mkdir -p +checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes @@ -692,10 +735,10 @@ checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... none -checking for a sed that does not truncate output... /bin/sed -checking for grep that handles long lines and -e... /bin/grep -checking for egrep... /bin/grep -E -checking for fgrep... /bin/grep -F +checking for a sed that does not truncate output... /usr/bin/sed +checking for grep that handles long lines and -e... /usr/bin/grep +checking for egrep... /usr/bin/grep -E +checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B @@ -716,8 +759,8 @@ checking for ranlib... (cached) ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no -checking for a working dd... /bin/dd -checking how to truncate binary pipes... /bin/dd bs=4096 count=1 +checking for a working dd... /usr/bin/dd +checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for mt... no checking if : is a manifest tool... no checking for stdio.h... yes @@ -804,7 +847,7 @@ config.status: executing libtool commands make[1]: Leaving directory '/build/rtorrent-0.9.8' dh_auto_build - make -j16 + make -j15 make[1]: Entering directory '/build/rtorrent-0.9.8' make all-recursive make[2]: Entering directory '/build/rtorrent-0.9.8' @@ -829,12 +872,13 @@ g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o poll_manager.o poll_manager.cc g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o view.o view.cc g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o view_manager.o view_manager.cc -In file included from view.cc:41: +In file included from download.cc:41: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/functional:49, - from view.cc:40: +In file included from /usr/include/c++/12/string:48, + from ../../rak/file_stat.h:40, + from download.cc:40: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -904,25 +948,12 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -In file included from view.cc:42: -../../rak/functional_fun.h:70:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 70 | class function_base1 : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../rak/functional_fun.h:78:36: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 78 | class function_base2 : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -In file included from view_manager.cc:40: +In file included from view.cc:41: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/functional:49, - from ../../rak/functional.h:41: + from view.cc:40: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -992,13 +1023,12 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -In file included from curl_stack.cc:43: +In file included from view_manager.cc:40: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48, - from /usr/include/torrent/exceptions.h:47, - from curl_stack.cc:41: +In file included from /usr/include/c++/12/functional:49, + from ../../rak/functional.h:41: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -1062,106 +1092,26 @@ /usr/include/c++/12/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ -In file included from download.cc:41: -../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 174 | struct less2_t : public std::binary_function { - | ^~~~~~~~~~~~~~~ ../../rak/functional.h:551:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 551 | class mem_fun2 : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48, - from ../../rak/file_stat.h:40, - from download.cc:40: -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -../../rak/functional.h:213:33: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 213 | struct greater2_t : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -../../rak/functional.h:273:29: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 273 | struct invert : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../rak/functional.h:279:27: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 279 | struct on_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../rak/functional.h:299:28: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 299 | struct on2_t : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -../../rak/functional.h:320:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 320 | struct mem_ptr_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../rak/functional.h:341:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 341 | struct mem_ref_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../rak/functional.h:352:38: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 352 | struct const_mem_ref_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../rak/functional.h:395:34: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 395 | struct call_delete : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../rak/functional.h:408:31: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 408 | class bind1st_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../rak/functional.h:433:31: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 433 | class bind2nd_t : public std::unary_function { - | ^~~~~~~~~~~~~~ +In file included from view.cc:42: +../../rak/functional_fun.h:70:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 70 | class function_base1 : public std::unary_function { + | ^~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ -../../rak/functional.h:551:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 551 | class mem_fun2 : public std::binary_function { - | ^~~~~~~~~~~~~~~ +../../rak/functional_fun.h:78:36: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 78 | class function_base2 : public std::binary_function { + | ^~~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../../rak/priority_queue_default.h:42, - from curl_get.h:45, - from curl_stack.cc:44: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_algobase.h:65, - from /usr/include/c++/12/algorithm:60, - from curl_stack.cc:39: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -In file included from ../../rak/priority_queue_default.h:42, from ./../control.h:43, from curl_socket.cc:46: ../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] @@ -1184,42 +1134,6 @@ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ../../rak/priority_queue_default.h:42, from ./../globals.h:41, - from poll_manager.cc:46: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45, - from /usr/include/c++/12/stdexcept:39, - from poll_manager.cc:39: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -In file included from ./../rpc/command.h:240, - from ./../rpc/command_map.h:45, - from ./../rpc/parse_commands.h:43, - from view.cc:46: -./../rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': -./../rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] - 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from ./../rpc/command_map.h:43: -/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here - 49 | class LIBTORRENT_EXPORT Object { - | ^~~~~~ -./../rpc/command_map.h: At global scope: -./../rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 49 | struct command_map_comp : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -In file included from ../../rak/priority_queue_default.h:42, - from ./../globals.h:41, from curl_get.cc:44: ../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | : public std::iterator { @@ -1253,124 +1167,69 @@ /usr/include/c++/12/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ -curl_socket.cc: In destructor 'virtual core::CurlSocket::~CurlSocket()': -curl_socket.cc:95:5: warning: 'throw' will always call 'terminate' [-Wterminate] - 95 | throw torrent::internal_error("CurlSocket::~CurlSocket() m_fileDesc != -1."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -curl_socket.cc:95:5: note: in C++11 destructors default to 'noexcept' -In file included from ../../rak/priority_queue_default.h:42, - from ./../control.h:43, - from view.cc:48: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_algobase.h:65, - from /usr/include/c++/12/algorithm:60, - from view.cc:39: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -curl_stack.cc: In member function 'bool core::CurlStack::process_done_handle()': -curl_stack.cc:136:90: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = void*; _Tp = core::CurlGet]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 136 | iterator itr = std::find_if(begin(), end(), rak::equal(msg->easy_handle, std::mem_fun(&CurlGet::handle))); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1371:5: note: declared here - 1371 | mem_fun(_Ret (_Tp::*__f)()) - | ^~~~~~~ -curl_stack.cc: In member function 'void core::CurlStack::transfer_done(void*, const char*)': -curl_stack.cc:158:78: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = void*; _Tp = core::CurlGet]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 158 | iterator itr = std::find_if(begin(), end(), rak::equal(handle, std::mem_fun(&CurlGet::handle))); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1371:5: note: declared here - 1371 | mem_fun(_Ret (_Tp::*__f)()) - | ^~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -curl_stack.cc: In member function 'void core::CurlStack::remove_get(core::CurlGet*)': -curl_stack.cc:238:65: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = core::CurlGet]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 238 | (itr = std::find_if(begin(), end(), std::not1(std::mem_fun(&CurlGet::is_active)))) != end()) { - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1377:5: note: declared here - 1377 | mem_fun(_Ret (_Tp::*__f)() const) - | ^~~~~~~ -curl_stack.cc:238:52: warning: 'constexpr std::unary_negate<_Predicate> std::not1(const _Predicate&) [with _Predicate = const_mem_fun_t]' is deprecated: use 'std::not_fn' instead [-Wdeprecated-declarations] - 238 | (itr = std::find_if(begin(), end(), std::not1(std::mem_fun(&CurlGet::is_active)))) != end()) { - | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1046:5: note: declared here - 1046 | not1(const _Predicate& __pred) - | ^~~~ -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438, - from /usr/include/c++/12/functional:49: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ In file included from ./../rpc/command.h:240, from ./../rpc/command_map.h:45, from ./../rpc/parse_commands.h:43, - from download_factory.cc:53: + from download.cc:50: ./../rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ./../rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from download_factory.cc:47: +In file included from ./../rpc/command_map.h:43: /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ +./../rpc/command_map.h: At global scope: +./../rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 49 | struct command_map_comp : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +curl_socket.cc: In destructor 'virtual core::CurlSocket::~CurlSocket()': +curl_socket.cc:95:5: warning: 'throw' will always call 'terminate' [-Wterminate] + 95 | throw torrent::internal_error("CurlSocket::~CurlSocket() m_fileDesc != -1."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +curl_socket.cc:95:5: note: in C++11 destructors default to 'noexcept' In file included from ../../rak/priority_queue_default.h:42, - from ./../globals.h:41, - from view_manager.cc:44: + from ./../control.h:43, + from download.cc:52: ../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/12/bits/stl_algobase.h:65, - from /usr/include/c++/12/algorithm:60, - from view_manager.cc:39: + from /usr/include/c++/12/list:60, + from download.cc:39: /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ -./../rpc/command_map.h: At global scope: -./../rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 49 | struct command_map_comp : public std::binary_function { - | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48, - from /usr/include/c++/12/bits/locale_classes.h:40, - from /usr/include/c++/12/bits/ios_base.h:41, - from /usr/include/c++/12/ios:42, - from /usr/include/c++/12/istream:38, - from /usr/include/c++/12/fstream:38, - from download_factory.cc:40: -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -In file included from http_queue.cc:43: +In file included from curl_get.cc:40: +curl_get.cc: In member function 'double core::CurlGet::size_done()': +curl_get.cc:136:31: warning: 'CURLINFO_SIZE_DOWNLOAD' is deprecated: since 7.55.0. Use CURLINFO_SIZE_DOWNLOAD_T [-Wdeprecated-declarations] + 136 | curl_easy_getinfo(m_handle, CURLINFO_SIZE_DOWNLOAD, &d); + | ^~~~~~~~~~~~~~~~~~~~~~ +/usr/include/x86_64-linux-gnu/curl/curl.h:2841:3: note: declared here + 2841 | CURLINFO_SIZE_DOWNLOAD + | ^~~~~~~~~~~~~~~~~~~~~~ +curl_get.cc: In member function 'double core::CurlGet::size_total()': +curl_get.cc:144:31: warning: 'CURLINFO_CONTENT_LENGTH_DOWNLOAD' is deprecated: since 7.55.0. Use CURLINFO_CONTENT_LENGTH_DOWNLOAD_T [-Wdeprecated-declarations] + 144 | curl_easy_getinfo(m_handle, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &d); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/x86_64-linux-gnu/curl/curl.h:2858:3: note: declared here + 2858 | CURLINFO_CONTENT_LENGTH_DOWNLOAD + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from curl_stack.cc:43: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/unique_ptr.h:37, - from /usr/include/c++/12/memory:76, - from http_queue.cc:39: +In file included from /usr/include/c++/12/string:48, + from /usr/include/torrent/exceptions.h:47, + from curl_stack.cc:41: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -1440,6 +1299,43 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +In file included from ../../rak/priority_queue_default.h:42, + from ./../globals.h:41, + from poll_manager.cc:46: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/string:45, + from /usr/include/c++/12/stdexcept:39, + from poll_manager.cc:39: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438, + from /usr/include/c++/12/string:48: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438, + from /usr/include/c++/12/functional:49: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ In file included from download_list.cc:42: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { @@ -1520,36 +1416,103 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -In file included from curl_get.cc:40: -curl_get.cc: In member function 'double core::CurlGet::size_done()': -curl_get.cc:136:31: warning: 'CURLINFO_SIZE_DOWNLOAD' is deprecated: since 7.55.0. Use CURLINFO_SIZE_DOWNLOAD_T [-Wdeprecated-declarations] - 136 | curl_easy_getinfo(m_handle, CURLINFO_SIZE_DOWNLOAD, &d); - | ^~~~~~~~~~~~~~~~~~~~~~ -/usr/include/x86_64-linux-gnu/curl/curl.h:2841:3: note: declared here - 2841 | CURLINFO_SIZE_DOWNLOAD - | ^~~~~~~~~~~~~~~~~~~~~~ -curl_get.cc: In member function 'double core::CurlGet::size_total()': -curl_get.cc:144:31: warning: 'CURLINFO_CONTENT_LENGTH_DOWNLOAD' is deprecated: since 7.55.0. Use CURLINFO_CONTENT_LENGTH_DOWNLOAD_T [-Wdeprecated-declarations] - 144 | curl_easy_getinfo(m_handle, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &d); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/x86_64-linux-gnu/curl/curl.h:2858:3: note: declared here - 2858 | CURLINFO_CONTENT_LENGTH_DOWNLOAD - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../../rak/priority_queue_default.h:42, from curl_get.h:45, - from http_queue.cc:45: + from curl_stack.cc:44: ../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/12/bits/stl_algobase.h:65, - from /usr/include/c++/12/memory:63: + from /usr/include/c++/12/algorithm:60, + from curl_stack.cc:39: /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from http_queue.cc:43: +../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 174 | struct less2_t : public std::binary_function { + | ^~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/unique_ptr.h:37, + from /usr/include/c++/12/memory:76, + from http_queue.cc:39: +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +../../rak/functional.h:213:33: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 213 | struct greater2_t : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +../../rak/functional.h:273:29: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 273 | struct invert : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../rak/functional.h:279:27: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 279 | struct on_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../rak/functional.h:299:28: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 299 | struct on2_t : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +../../rak/functional.h:320:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 320 | struct mem_ptr_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../rak/functional.h:341:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 341 | struct mem_ref_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../rak/functional.h:352:38: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 352 | struct const_mem_ref_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../rak/functional.h:395:34: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 395 | struct call_delete : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../rak/functional.h:408:31: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 408 | class bind1st_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../rak/functional.h:433:31: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 433 | class bind2nd_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../rak/functional.h:551:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 551 | class mem_fun2 : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ In file included from ./../rpc/command.h:240, from ./../rpc/command_map.h:45, from ./../rpc/parse_commands.h:43, - from download.cc:50: + from view.cc:46: ./../rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ./../rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); @@ -1560,11 +1523,12 @@ | ^~~~~~ In file included from ../../rak/priority_queue_default.h:42, from curl_get.h:45, - from download_factory.cc:55: + from http_queue.cc:45: ../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | : public std::iterator { | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45: +In file included from /usr/include/c++/12/bits/stl_algobase.h:65, + from /usr/include/c++/12/memory:63: /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -1575,26 +1539,20 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438, - from /usr/include/c++/12/string:48: +In file included from /usr/include/c++/12/bits/stl_function.h:1438: /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' http_queue.cc: In member function 'std::__cxx11::list::iterator core::HttpQueue::insert(const std::string&, std::iostream*)': http_queue.cc:51:8: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 51 | std::auto_ptr h(m_slot_factory()); @@ -1602,45 +1560,15 @@ /usr/include/c++/12/bits/unique_ptr.h:64:28: note: declared here 64 | template class auto_ptr; | ^~~~~~~~ -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438, - from /usr/include/c++/12/string:48: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -view.cc: At global scope: -view.cc:57:38: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 57 | struct view_downloads_compare : std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -view.cc:91:37: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 91 | struct view_downloads_filter : std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -view.cc: In member function 'void core::View::initialize(const std::string&)': -view.cc:179:72: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = void; _Tp = core::View; _Arg = core::Download*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 179 | std::for_each(dlist->begin(), dlist->end(), rak::bind1st(std::mem_fun(&View::push_back), this)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1395:5: note: declared here - 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) - | ^~~~~~~ In file included from ../../rak/priority_queue_default.h:42, - from ./../control.h:43, - from download.cc:52: + from ./../globals.h:41, + from view_manager.cc:44: ../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/12/bits/stl_algobase.h:65, - from /usr/include/c++/12/list:60, - from download.cc:39: + from /usr/include/c++/12/algorithm:60, + from view_manager.cc:39: /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -1658,15 +1586,51 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +curl_stack.cc: In member function 'bool core::CurlStack::process_done_handle()': +curl_stack.cc:136:90: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = void*; _Tp = core::CurlGet]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 136 | iterator itr = std::find_if(begin(), end(), rak::equal(msg->easy_handle, std::mem_fun(&CurlGet::handle))); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1371:5: note: declared here + 1371 | mem_fun(_Ret (_Tp::*__f)()) + | ^~~~~~~ +curl_stack.cc: In member function 'void core::CurlStack::transfer_done(void*, const char*)': +curl_stack.cc:158:78: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = void*; _Tp = core::CurlGet]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 158 | iterator itr = std::find_if(begin(), end(), rak::equal(handle, std::mem_fun(&CurlGet::handle))); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1371:5: note: declared here + 1371 | mem_fun(_Ret (_Tp::*__f)()) + | ^~~~~~~ +curl_stack.cc: In member function 'void core::CurlStack::remove_get(core::CurlGet*)': +curl_stack.cc:238:65: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = core::CurlGet]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 238 | (itr = std::find_if(begin(), end(), std::not1(std::mem_fun(&CurlGet::is_active)))) != end()) { + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1377:5: note: declared here + 1377 | mem_fun(_Ret (_Tp::*__f)() const) + | ^~~~~~~ +curl_stack.cc:238:52: warning: 'constexpr std::unary_negate<_Predicate> std::not1(const _Predicate&) [with _Predicate = const_mem_fun_t]' is deprecated: use 'std::not_fn' instead [-Wdeprecated-declarations] + 238 | (itr = std::find_if(begin(), end(), std::not1(std::mem_fun(&CurlGet::is_active)))) != end()) { + | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1046:5: note: declared here + 1046 | not1(const _Predicate& __pred) + | ^~~~ +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ In file included from ./../rpc/command.h:240, from ./../rpc/command_map.h:45, from ./../rpc/parse_commands.h:43, - from view_manager.cc:46: + from dht_manager.cc:47: ./../rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ./../rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from view_manager.cc:42: +In file included from dht_manager.cc:41: /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ @@ -1674,39 +1638,50 @@ ./../rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/string:48, + from /usr/include/c++/12/bits/locale_classes.h:40, + from /usr/include/c++/12/bits/ios_base.h:41, + from /usr/include/c++/12/ios:42, + from /usr/include/c++/12/istream:38, + from /usr/include/c++/12/fstream:38, + from dht_manager.cc:39: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -view.cc: In member function 'void core::View::insert_visible(core::Download*)': -view.cc:361:75: warning: 'std::binder1st<_Operation> std::bind1st(const _Operation&, const _Tp&) [with _Operation = core::view_downloads_compare; _Tp = core::Download*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 361 | iterator itr = std::find_if(begin_visible(), end_visible(), std::bind1st(view_downloads_compare(m_sortNew), d)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:136:5: note: declared here - 136 | bind1st(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ +In file included from ../../rak/priority_queue_default.h:42, + from ./../control.h:43, + from view.cc:48: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_algobase.h:65, + from /usr/include/c++/12/algorithm:60, + from view.cc:39: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438, + from /usr/include/c++/12/string:48: /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ../../rak/priority_queue_default.h:42, from ./../globals.h:41, - from download.h:47, - from download_store.cc:56: + from dht_manager.cc:49: ../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | : public std::iterator { | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45, - from /usr/include/c++/12/bits/locale_classes.h:40, - from /usr/include/c++/12/bits/ios_base.h:41, - from /usr/include/c++/12/ios:42, - from /usr/include/c++/12/istream:38, - from /usr/include/c++/12/fstream:38, - from download_store.cc:41: +In file included from /usr/include/c++/12/string:45: /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -1715,30 +1690,15 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -download_store.cc: In member function 'utils::Directory core::DownloadStore::get_formated_entries()': -download_store.cc:199:58: warning: 'std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = const utils::directory_entry&; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] - 199 | d.erase(std::remove_if(d.begin(), d.end(), std::ptr_fun(¬_correct_format)), d.end()); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48: -/usr/include/c++/12/bits/stl_function.h:1126:5: note: declared here - 1126 | ptr_fun(_Result (*__x)(_Arg)) - | ^~~~~~~ -download_factory.cc: In member function 'void core::DownloadFactory::receive_success()': -download_factory.cc:319:44: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = const __cxx11::basic_string&; _Arg2 = rpc::rt_triple; _Result = torrent::Object]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] - 319 | rak::bind2nd(std::ptr_fun(&rpc::parse_command_multiple_std), rpc::make_target(download))); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1153:5: note: declared here - 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) - | ^~~~~~~ In file included from ./../rpc/command.h:240, from ./../rpc/command_map.h:45, from ./../rpc/parse_commands.h:43, - from dht_manager.cc:47: + from view_manager.cc:46: ./../rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ./../rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from dht_manager.cc:41: +In file included from view_manager.cc:42: /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ @@ -1746,32 +1706,70 @@ ./../rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +In file included from ./../rpc/command.h:240, + from ./../rpc/command_map.h:45, + from ./../rpc/parse_commands.h:43, + from download_factory.cc:53: +./../rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': +./../rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] + 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from download_factory.cc:47: +/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here + 49 | class LIBTORRENT_EXPORT Object { + | ^~~~~~ +view.cc: At global scope: +view.cc:57:38: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 57 | struct view_downloads_compare : std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +view.cc:91:37: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 91 | struct view_downloads_filter : std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +view.cc: In member function 'void core::View::initialize(const std::string&)': +view.cc:179:72: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = void; _Tp = core::View; _Arg = core::Download*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 179 | std::for_each(dlist->begin(), dlist->end(), rak::bind1st(std::mem_fun(&View::push_back), this)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1395:5: note: declared here + 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) + | ^~~~~~~ +./../rpc/command_map.h: At global scope: +./../rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 49 | struct command_map_comp : public std::binary_function { + | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/string:48, from /usr/include/c++/12/bits/locale_classes.h:40, from /usr/include/c++/12/bits/ios_base.h:41, from /usr/include/c++/12/ios:42, from /usr/include/c++/12/istream:38, from /usr/include/c++/12/fstream:38, - from dht_manager.cc:39: + from download_factory.cc:40: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +view.cc: In member function 'void core::View::insert_visible(core::Download*)': +view.cc:361:75: warning: 'std::binder1st<_Operation> std::bind1st(const _Operation&, const _Tp&) [with _Operation = core::view_downloads_compare; _Tp = core::Download*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 361 | iterator itr = std::find_if(begin_visible(), end_visible(), std::bind1st(view_downloads_compare(m_sortNew), d)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:136:5: note: declared here + 136 | bind1st(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ view_manager.cc: In member function 'rak::unordered_vector::iterator core::ViewManager::find(const std::string&)': view_manager.cc:79:68: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = const __cxx11::basic_string&; _Tp = core::View]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 79 | return std::find_if(begin(), end(), rak::equal(name, std::mem_fun(&View::name))); | ~~~~~~~~~~~~^~~~~~~~~~~~~ -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ view_manager.cc: In member function 'rak::unordered_vector::iterator core::ViewManager::find_throw(const std::string&)': view_manager.cc:84:76: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = const __cxx11::basic_string&; _Tp = core::View]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 84 | iterator itr = std::find_if(begin(), end(), rak::equal(name, std::mem_fun(&View::name))); @@ -1779,25 +1777,24 @@ /usr/include/c++/12/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ -In file included from ../../rak/priority_queue_default.h:42, - from ./../globals.h:41, - from dht_manager.cc:49: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +In file included from ../../rak/priority_queue_default.h:42, + from curl_get.h:45, + from download_factory.cc:55: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/string:45: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ ../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); @@ -1812,15 +1809,6 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ In file included from ./../rpc/command.h:240, from ./../rpc/command_map.h:45, from ./../rpc/parse_commands.h:43, @@ -1840,6 +1828,32 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ +In file included from ../../rak/priority_queue_default.h:42, + from ./../globals.h:41, + from download.h:47, + from download_store.cc:56: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/string:45, + from /usr/include/c++/12/bits/locale_classes.h:40, + from /usr/include/c++/12/bits/ios_base.h:41, + from /usr/include/c++/12/ios:42, + from /usr/include/c++/12/istream:38, + from /usr/include/c++/12/fstream:38, + from download_store.cc:41: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ In file included from ../../rak/priority_queue_default.h:42, from ./../globals.h:41, from manager.cc:64: @@ -1855,6 +1869,11 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ./../rpc/command.h:240, from ./../rpc/command_map.h:45, from ./../rpc/parse_commands.h:43, @@ -1867,21 +1886,27 @@ /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ +download_store.cc: In member function 'utils::Directory core::DownloadStore::get_formated_entries()': +download_store.cc:199:58: warning: 'std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = const utils::directory_entry&; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] + 199 | d.erase(std::remove_if(d.begin(), d.end(), std::ptr_fun(¬_correct_format)), d.end()); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ ./../rpc/command_map.h: At global scope: ./../rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/string:48: +/usr/include/c++/12/bits/stl_function.h:1126:5: note: declared here + 1126 | ptr_fun(_Result (*__x)(_Arg)) + | ^~~~~~~ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) +download_factory.cc: In member function 'void core::DownloadFactory::receive_success()': +download_factory.cc:319:44: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = const __cxx11::basic_string&; _Arg2 = rpc::rt_triple; _Result = torrent::Object]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] + 319 | rak::bind2nd(std::ptr_fun(&rpc::parse_command_multiple_std), rpc::make_target(download))); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1153:5: note: declared here + 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) | ^~~~~~~ In file included from ../../rak/priority_queue_default.h:42, from ./../control.h:43, @@ -1900,57 +1925,23 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -manager.cc: In member function 'void core::Manager::shutdown(bool)': -manager.cc:178:92: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = void; _Tp = core::DownloadList; _Arg = core::Download*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 178 | std::for_each(m_downloadList->begin(), m_downloadList->end(), std::bind1st(std::mem_fun(&DownloadList::pause_default), m_downloadList)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1395:5: note: declared here - 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) - | ^~~~~~~ -manager.cc:178:79: warning: 'std::binder1st<_Operation> std::bind1st(const _Operation&, const _Tp&) [with _Operation = mem_fun1_t; _Tp = core::DownloadList*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 178 | std::for_each(m_downloadList->begin(), m_downloadList->end(), std::bind1st(std::mem_fun(&DownloadList::pause_default), m_downloadList)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:136:5: note: declared here - 136 | bind1st(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -manager.cc:180:92: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = void; _Tp = core::DownloadList; _Arg = core::Download*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 180 | std::for_each(m_downloadList->begin(), m_downloadList->end(), std::bind1st(std::mem_fun(&DownloadList::close_quick), m_downloadList)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1395:5: note: declared here - 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) - | ^~~~~~~ -manager.cc:180:79: warning: 'std::binder1st<_Operation> std::bind1st(const _Operation&, const _Tp&) [with _Operation = mem_fun1_t; _Tp = core::DownloadList*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 180 | std::for_each(m_downloadList->begin(), m_downloadList->end(), std::bind1st(std::mem_fun(&DownloadList::close_quick), m_downloadList)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/backward/binders.h:136:5: note: declared here - 136 | bind1st(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -manager.cc: In function 'void core::path_expand(std::vector >*, const std::string&)': -manager.cc:417:123: warning: 'constexpr std::unary_negate<_Predicate> std::not1(const _Predicate&) [with _Predicate = rak::regex]' is deprecated: use 'std::not_fn' instead [-Wdeprecated-declarations] - 417 | itr->erase(std::remove_if(itr->begin(), itr->end(), rak::on(rak::mem_ref(&utils::directory_entry::d_name), std::not1(r))), itr->end()); - | ~~~~~~~~~^~~ -/usr/include/c++/12/bits/stl_function.h:1046:5: note: declared here - 1046 | not1(const _Predicate& __pred) - | ^~~~ -manager.cc:419:104: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = __cxx11::basic_string; _Arg2 = const utils::directory_entry&; _Result = utils::Directory]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] - 419 | std::transform(itr->begin(), itr->end(), std::back_inserter(nextCache), rak::bind1st(std::ptr_fun(&path_expand_transform), itr->path() + (itr->path() == "/" ? "" : "/"))); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1153:5: note: declared here - 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -manager.cc:426:104: warning: 'std::mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)()) [with _Ret = const __cxx11::basic_string&; _Tp = utils::Directory]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 426 | std::transform(currentCache.begin(), currentCache.end(), std::back_inserter(*paths), std::mem_fun_ref(&utils::Directory::path)); - | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1383:5: note: declared here - 1383 | mem_fun_ref(_Ret (_Tp::*__f)()) - | ^~~~~~~~~~~ -manager.cc: In member function 'void core::Manager::receive_hashing_changed()': -manager.cc:460:48: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = core::Download]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 460 | std::mem_fun(&Download::is_hash_checking)) != m_hashingView->end_visible(); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1377:5: note: declared here - 1377 | mem_fun(_Ret (_Tp::*__f)() const) +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ download_list.cc: In member function 'void core::DownloadList::clear()': download_list.cc:83:58: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = void; _Tp = core::DownloadList; _Arg = core::Download*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] @@ -2024,14 +2015,6 @@ /usr/include/c++/12/bits/stl_function.h:1395:5: note: declared here 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) | ^~~~~~~ -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ download_list.cc:191:97: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = mem_fun1_t; _Tp = core::Download*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 191 | std::for_each(control->view_manager()->begin(), control->view_manager()->end(), std::bind2nd(std::mem_fun(&View::filter_download), download)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -2051,6 +2034,66 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +manager.cc: In member function 'void core::Manager::shutdown(bool)': +manager.cc:178:92: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = void; _Tp = core::DownloadList; _Arg = core::Download*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 178 | std::for_each(m_downloadList->begin(), m_downloadList->end(), std::bind1st(std::mem_fun(&DownloadList::pause_default), m_downloadList)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1395:5: note: declared here + 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) + | ^~~~~~~ +manager.cc:178:79: warning: 'std::binder1st<_Operation> std::bind1st(const _Operation&, const _Tp&) [with _Operation = mem_fun1_t; _Tp = core::DownloadList*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 178 | std::for_each(m_downloadList->begin(), m_downloadList->end(), std::bind1st(std::mem_fun(&DownloadList::pause_default), m_downloadList)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:136:5: note: declared here + 136 | bind1st(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ +manager.cc:180:92: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = void; _Tp = core::DownloadList; _Arg = core::Download*]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 180 | std::for_each(m_downloadList->begin(), m_downloadList->end(), std::bind1st(std::mem_fun(&DownloadList::close_quick), m_downloadList)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1395:5: note: declared here + 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) + | ^~~~~~~ +manager.cc:180:79: warning: 'std::binder1st<_Operation> std::bind1st(const _Operation&, const _Tp&) [with _Operation = mem_fun1_t; _Tp = core::DownloadList*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 180 | std::for_each(m_downloadList->begin(), m_downloadList->end(), std::bind1st(std::mem_fun(&DownloadList::close_quick), m_downloadList)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/backward/binders.h:136:5: note: declared here + 136 | bind1st(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ +manager.cc: In function 'void core::path_expand(std::vector >*, const std::string&)': +manager.cc:417:123: warning: 'constexpr std::unary_negate<_Predicate> std::not1(const _Predicate&) [with _Predicate = rak::regex]' is deprecated: use 'std::not_fn' instead [-Wdeprecated-declarations] + 417 | itr->erase(std::remove_if(itr->begin(), itr->end(), rak::on(rak::mem_ref(&utils::directory_entry::d_name), std::not1(r))), itr->end()); + | ~~~~~~~~~^~~ +/usr/include/c++/12/bits/stl_function.h:1046:5: note: declared here + 1046 | not1(const _Predicate& __pred) + | ^~~~ +manager.cc:419:104: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = __cxx11::basic_string; _Arg2 = const utils::directory_entry&; _Result = utils::Directory]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] + 419 | std::transform(itr->begin(), itr->end(), std::back_inserter(nextCache), rak::bind1st(std::ptr_fun(&path_expand_transform), itr->path() + (itr->path() == "/" ? "" : "/"))); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1153:5: note: declared here + 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) + | ^~~~~~~ +manager.cc:426:104: warning: 'std::mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)()) [with _Ret = const __cxx11::basic_string&; _Tp = utils::Directory]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 426 | std::transform(currentCache.begin(), currentCache.end(), std::back_inserter(*paths), std::mem_fun_ref(&utils::Directory::path)); + | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1383:5: note: declared here + 1383 | mem_fun_ref(_Ret (_Tp::*__f)()) + | ^~~~~~~~~~~ +manager.cc: In member function 'void core::Manager::receive_hashing_changed()': +manager.cc:460:48: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = core::Download]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 460 | std::mem_fun(&Download::is_hash_checking)) != m_hashingView->end_visible(); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1377:5: note: declared here + 1377 | mem_fun(_Ret (_Tp::*__f)() const) + | ^~~~~~~ ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -2097,7 +2140,30 @@ g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o window_file_list.o window_file_list.cc g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o window_http_queue.o window_http_queue.cc g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o window_input.o window_input.cc -g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o window_log.o window_log.cc +In file included from window_download_list.cc:39: +../../rak/algorithm.h:118:35: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 118 | struct compare_base : public std::binary_function<_Value, _Value, bool> { + | ^~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/functional:49, + from ../../rak/algorithm.h:41: +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +In file included from ../../rak/priority_queue_default.h:42, + from ./../globals.h:41, + from text_element_value.cc:41: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_construct.h:61, + from /usr/include/c++/12/bits/alloc_traits.h:33, + from /usr/include/c++/12/ext/alloc_traits.h:34, + from /usr/include/c++/12/unordered_map:41, + from /usr/include/c++/12/functional:61, + from ../../rak/priority_queue_default.h:40: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ In file included from frame.cc:42: ../../rak/algorithm.h:118:35: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 118 | struct compare_base : public std::binary_function<_Value, _Value, bool> { @@ -2107,12 +2173,13 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -In file included from text_element_list.cc:40: +In file included from manager.cc:41: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/functional:49, - from ../../rak/functional.h:41: +In file included from /usr/include/c++/12/string:48, + from /usr/include/c++/12/stdexcept:39, + from manager.cc:39: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -2182,37 +2249,12 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -In file included from ../../rak/priority_queue_default.h:42, - from ./../globals.h:41, - from text_element_value.cc:41: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_construct.h:61, - from /usr/include/c++/12/bits/alloc_traits.h:33, - from /usr/include/c++/12/ext/alloc_traits.h:34, - from /usr/include/c++/12/unordered_map:41, - from /usr/include/c++/12/functional:61, - from ../../rak/priority_queue_default.h:40: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -In file included from window_download_list.cc:39: -../../rak/algorithm.h:118:35: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 118 | struct compare_base : public std::binary_function<_Value, _Value, bool> { - | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/functional:49, - from ../../rak/algorithm.h:41: -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -In file included from manager.cc:41: +In file included from text_element_list.cc:40: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48, - from /usr/include/c++/12/stdexcept:39, - from manager.cc:39: +In file included from /usr/include/c++/12/functional:49, + from ../../rak/functional.h:41: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -2228,12 +2270,22 @@ /usr/include/c++/12/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ +In file included from ../../rak/priority_queue_default.h:42, + from ./../globals.h:41, + from manager.cc:44: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ ../../rak/functional.h:279:27: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 279 | struct on_t : public std::unary_function { | ^~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/string:45: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ ../../rak/functional.h:299:28: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 299 | struct on2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ @@ -2282,14 +2334,43 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from ../../rak/priority_queue_default.h:42, + from ./../globals.h:41, + from ./../core/download.h:47, + from window_download_list.cc:41: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_algobase.h:65, + from /usr/include/c++/12/algorithm:60, + from ../../rak/algorithm.h:40: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from window.h:41, - from window.cc:41: + from window_input.h:42, + from window_input.cc:40: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/string:48, - from /usr/include/c++/12/stdexcept:39, - from window.cc:39: + from canvas.h:40, + from window_input.cc:39: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -2361,7 +2442,7 @@ | ^~~~~~~~~~~~~~~ In file included from ../../rak/priority_queue_default.h:42, from ./../globals.h:41, - from manager.cc:44: + from window.h:44: ../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | : public std::iterator { | ^~~~~~~~ @@ -2370,10 +2451,13 @@ 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from window.h:41, - from frame.cc:46: + from window.cc:41: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/string:48, + from /usr/include/c++/12/stdexcept:39, + from window.cc:39: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -2443,18 +2527,26 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -In file included from ../../rak/priority_queue_default.h:42, - from ./../core/curl_get.h:45, - from window_http_queue.cc:41: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45, - from /usr/include/c++/12/stdexcept:39, - from window_http_queue.cc:39: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ +In file included from ./../rpc/command.h:240, + from ./../rpc/command_map.h:45, + from ./../rpc/parse_commands.h:43, + from window_download_list.cc:43: +./../rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': +./../rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] + 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from ./../core/view.h:55, + from window_download_list.cc:42: +/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here + 49 | class LIBTORRENT_EXPORT Object { + | ^~~~~~ +./../rpc/command_map.h: At global scope: +./../rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 49 | struct command_map_comp : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ In file included from ../../rak/priority_queue_default.h:42, from ./../globals.h:41, from window.h:44: @@ -2465,32 +2557,11 @@ /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -In file included from ../../rak/priority_queue_default.h:42, - from ./../globals.h:41, - from window.h:44: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_algobase.h:65, - from /usr/include/c++/12/algorithm:60, - from frame.cc:39: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ In file included from window.h:41, - from window_input.h:42, - from window_input.cc:40: + from frame.cc:46: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48, - from canvas.h:40, - from window_input.cc:39: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -2500,11 +2571,6 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' ../../rak/functional.h:273:29: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 273 | struct invert : public std::unary_function { | ^~~~~~~~~~~~~~ @@ -2566,12 +2632,38 @@ 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../../rak/priority_queue_default.h:42, + from ./../core/curl_get.h:45, + from window_http_queue.cc:41: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from ./../rpc/command.h:240, + from ./../rpc/command_map.h:45, + from ./../rpc/parse_commands.h:43, + from canvas.cc:44: +./../rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': +./../rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] + 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from ./../rpc/command_map.h:43: +/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here + 49 | class LIBTORRENT_EXPORT Object { + | ^~~~~~ +In file included from ../../rak/priority_queue_default.h:42, from ./../globals.h:41, from window.h:44: ../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | : public std::iterator { | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45: +In file included from /usr/include/c++/12/bits/stl_algobase.h:65, + from /usr/include/c++/12/algorithm:60, + from frame.cc:39: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +In file included from /usr/include/c++/12/string:45, + from /usr/include/c++/12/stdexcept:39, + from window_http_queue.cc:39: /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -2580,13 +2672,87 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -In file included from window_download_chunks_seen.cc:41: +./../rpc/command_map.h: At global scope: +./../rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 49 | struct command_map_comp : public std::binary_function { + | ^~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/string:48, + from /usr/include/torrent/exceptions.h:47, + from canvas.cc:42: +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +In file included from ./../rpc/command.h:240, + from ./../rpc/command_map.h:45, + from text_element.h:44, + from text_element_value.h:43, + from text_element_value.cc:42: +./../rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': +./../rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] + 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from ./../rpc/command_map.h:43: +/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here + 49 | class LIBTORRENT_EXPORT Object { + | ^~~~~~ +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ +./../rpc/command_map.h: At global scope: +./../rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 49 | struct command_map_comp : public std::binary_function { + | ^~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/functional:49: +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from ../../rak/priority_queue_default.h:42, + from ./../globals.h:41, + from window_download_statusbar.cc:47: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_algobase.h:65, + from /usr/include/c++/12/deque:60, + from /usr/include/torrent/rate.h:40, + from window_download_statusbar.cc:39: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from window.h:41, + from window_download_statusbar.h:40, + from window_download_statusbar.cc:49: +../../rak/functional.h: At global scope: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48, - from /usr/include/c++/12/stdexcept:39, - from window_download_chunks_seen.cc:40: +In file included from /usr/include/c++/12/bits/refwrap.h:39, + from /usr/include/c++/12/deque:65: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -2650,6 +2816,11 @@ /usr/include/c++/12/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' ../../rak/functional.h:551:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 551 | class mem_fun2 : public std::binary_function { | ^~~~~~~~~~~~~~~ @@ -2661,16 +2832,15 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ In file included from window_http_queue.cc:45: ../../rak/functional.h: At global scope: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] @@ -2746,15 +2916,31 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -In file included from window.h:41, - from window_log.h:42, - from window_log.cc:45: +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ +In file included from window_download_chunks_seen.cc:41: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/string:48, - from /usr/include/torrent/torrent.h:41, - from window_log.cc:40: + from /usr/include/c++/12/stdexcept:39, + from window_download_chunks_seen.cc:40: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -2818,41 +3004,6 @@ /usr/include/c++/12/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ -../../rak/functional.h:551:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 551 | class mem_fun2 : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -In file included from ../../rak/priority_queue_default.h:42, - from ./../globals.h:41, - from window.h:44: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_algobase.h:65, - from /usr/include/c++/12/list:60, - from /usr/include/torrent/torrent.h:40: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -In file included from ./../rpc/command.h:240, - from ./../rpc/command_map.h:45, - from ./../rpc/parse_commands.h:43, - from canvas.cc:44: -./../rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': -./../rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] - 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from ./../rpc/command_map.h:43: -/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here - 49 | class LIBTORRENT_EXPORT Object { - | ^~~~~~ ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -2862,34 +3013,12 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -./../rpc/command_map.h: At global scope: -./../rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 49 | struct command_map_comp : public std::binary_function { - | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48, - from /usr/include/torrent/exceptions.h:47, - from canvas.cc:42: +../../rak/functional.h:551:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 551 | class mem_fun2 : public std::binary_function { + | ^~~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -In file included from ../../rak/priority_queue_default.h:42, - from ./../globals.h:41, - from ./../core/download.h:47, - from window_download_list.cc:41: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_algobase.h:65, - from /usr/include/c++/12/algorithm:60, - from ../../rak/algorithm.h:40: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -2899,6 +3028,13 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +window_http_queue.cc: In member function 'void display::WindowHttpQueue::receive_erase(core::CurlGet*)': +window_http_queue.cc:148:112: warning: 'std::mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)()) [with _Ret = core::CurlGet*; _Tp = display::WindowHttpQueue::Node]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 148 | Container::iterator itr = std::find_if(m_container.begin(), m_container.end(), rak::equal(h, std::mem_fun_ref(&Node::get_http))); + | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1383:5: note: declared here + 1383 | mem_fun_ref(_Ret (_Tp::*__f)()) + | ^~~~~~~~~~~ In file included from ./../rpc/command.h:240, from ./../rpc/command_map.h:45, from text_element.h:44, @@ -2928,37 +3064,11 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -window_http_queue.cc: In member function 'void display::WindowHttpQueue::receive_erase(core::CurlGet*)': -window_http_queue.cc:148:112: warning: 'std::mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)()) [with _Ret = core::CurlGet*; _Tp = display::WindowHttpQueue::Node]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 148 | Container::iterator itr = std::find_if(m_container.begin(), m_container.end(), rak::equal(h, std::mem_fun_ref(&Node::get_http))); - | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1383:5: note: declared here - 1383 | mem_fun_ref(_Ret (_Tp::*__f)()) - | ^~~~~~~~~~~ -In file included from ../../rak/priority_queue_default.h:42, - from ./../globals.h:41, - from ./../core/download.h:47, - from window_file_list.cc:46: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45, - from /usr/include/c++/12/bits/locale_classes.h:40, - from /usr/include/c++/12/locale:39, - from window_file_list.cc:39: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o window_log.o window_log.cc In file included from ./../rpc/command.h:240, from ./../rpc/command_map.h:45, - from text_element.h:44, - from text_element_value.h:43, - from text_element_value.cc:42: + from ./../rpc/parse_commands.h:43, + from text_element_string.cc:41: ./../rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ./../rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); @@ -2967,20 +3077,14 @@ /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ +g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o window_log_complete.o window_log_complete.cc ./../rpc/command_map.h: At global scope: ./../rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/functional:49: +In file included from /usr/include/c++/12/functional:49, + from ../../rak/string_manip.h:44, + from text_element_string.cc:39: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -3006,28 +3110,115 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from ../../rak/priority_queue_default.h:42, + from ./../globals.h:41, + from ./../core/download.h:47, + from window_file_list.cc:46: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/string:45, + from /usr/include/c++/12/bits/locale_classes.h:40, + from /usr/include/c++/12/locale:39, + from window_file_list.cc:39: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o window_peer_list.o window_peer_list.cc +In file included from ../../rak/priority_queue_default.h:42, + from ./../globals.h:41, + from ./../core/download.h:47, + from window_download_chunks_seen.cc:48: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_algobase.h:65, + from /usr/include/c++/12/bits/specfun.h:45, + from /usr/include/c++/12/cmath:1935, + from window_download_chunks_seen.cc:39: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o window_statusbar.o window_statusbar.cc +g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o window_string_list.o window_string_list.cc ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: +In file included from /usr/include/c++/12/bits/stl_function.h:1438, + from /usr/include/c++/12/string:48: /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +In file included from ./../rpc/command.h:240, + from ./../rpc/command_map.h:45, + from ./../rpc/parse_commands.h:43, + from utils.cc:59: +./../rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': +./../rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] + 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from ./../rpc/command_map.h:43: +/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here + 49 | class LIBTORRENT_EXPORT Object { + | ^~~~~~ +window_download_chunks_seen.cc: In member function 'virtual void display::WindowDownloadChunksSeen::redraw()': +window_download_chunks_seen.cc:98:82: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = unsigned int; _Tp = torrent::BlockList]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 98 | std::sort(transferChunks.begin(), transferChunks.end(), rak::less2(std::mem_fun(&torrent::BlockList::index), std::mem_fun(&torrent::BlockList::index))); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1377:5: note: declared here + 1377 | mem_fun(_Ret (_Tp::*__f)() const) + | ^~~~~~~ +window_download_chunks_seen.cc:98:124: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = unsigned int; _Tp = torrent::BlockList]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 98 | std::sort(transferChunks.begin(), transferChunks.end(), rak::less2(std::mem_fun(&torrent::BlockList::index), std::mem_fun(&torrent::BlockList::index))); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1377:5: note: declared here + 1377 | mem_fun(_Ret (_Tp::*__f)() const) + | ^~~~~~~ +window_download_chunks_seen.cc:114:90: warning: 'std::const_mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = torrent::Block]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 114 | if (std::find_if((*itrTransfer)->begin(), (*itrTransfer)->end(), std::mem_fun_ref(&torrent::Block::is_transfering)) != (*itrTransfer)->end()) + | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1389:5: note: declared here + 1389 | mem_fun_ref(_Ret (_Tp::*__f)() const) + | ^~~~~~~~~~~ In file included from ../../rak/priority_queue_default.h:42, from ./../globals.h:41, - from window_download_statusbar.cc:47: + from ./../core/download.h:47, + from window_download_transfer_list.cc:45: ../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/12/bits/stl_algobase.h:65, - from /usr/include/c++/12/deque:60, - from /usr/include/torrent/rate.h:40, - from window_download_statusbar.cc:39: + from /usr/include/c++/12/bits/specfun.h:45, + from /usr/include/c++/12/cmath:1935, + from window_download_transfer_list.cc:39: /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +./../rpc/command_map.h: At global scope: +./../rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 49 | struct command_map_comp : public std::binary_function { + | ^~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/string:48: +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -3037,11 +3228,15 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +utils.cc: In function 'char* display::print_download_status(char*, char*, core::Download*)': +utils.cc:201:32: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = torrent::Tracker]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 201 | std::mem_fun(&torrent::Tracker::is_busy_not_scrape)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1377:5: note: declared here + 1377 | mem_fun(_Ret (_Tp::*__f)() const) + | ^~~~~~~ +g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o window_text.o window_text.cc +g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o window_title.o window_title.cc ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -3052,14 +3247,14 @@ 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from window.h:41, - from window_download_statusbar.h:40, - from window_download_statusbar.cc:49: -../../rak/functional.h: At global scope: + from window_log.h:42, + from window_log.cc:45: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/refwrap.h:39, - from /usr/include/c++/12/deque:65: +In file included from /usr/include/c++/12/string:48, + from /usr/include/torrent/torrent.h:41, + from window_log.cc:40: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -3129,143 +3324,15 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -In file included from ./../rpc/command.h:240, - from ./../rpc/command_map.h:45, - from ./../rpc/parse_commands.h:43, - from window_download_list.cc:43: -./../rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': -./../rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] - 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from ./../core/view.h:55, - from window_download_list.cc:42: -/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here - 49 | class LIBTORRENT_EXPORT Object { - | ^~~~~~ -./../rpc/command_map.h: At global scope: -./../rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 49 | struct command_map_comp : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438, - from /usr/include/c++/12/string:48: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -In file included from ../../rak/priority_queue_default.h:42, - from ./../globals.h:41, - from ./../core/download.h:47, - from window_download_transfer_list.cc:45: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_algobase.h:65, - from /usr/include/c++/12/bits/specfun.h:45, - from /usr/include/c++/12/cmath:1935, - from window_download_transfer_list.cc:39: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -In file included from ./../rpc/command.h:240, - from ./../rpc/command_map.h:45, - from ./../rpc/parse_commands.h:43, - from utils.cc:59: -./../rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': -./../rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] - 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from ./../rpc/command_map.h:43: -/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here - 49 | class LIBTORRENT_EXPORT Object { - | ^~~~~~ -./../rpc/command_map.h: At global scope: -./../rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 49 | struct command_map_comp : public std::binary_function { - | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48: -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -utils.cc: In function 'char* display::print_download_status(char*, char*, core::Download*)': -utils.cc:201:32: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = torrent::Tracker]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 201 | std::mem_fun(&torrent::Tracker::is_busy_not_scrape)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1377:5: note: declared here - 1377 | mem_fun(_Ret (_Tp::*__f)() const) - | ^~~~~~~ -In file included from ./../rpc/command.h:240, - from ./../rpc/command_map.h:45, - from ./../rpc/parse_commands.h:43, - from text_element_string.cc:41: -./../rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': -./../rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] - 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from ./../rpc/command_map.h:43: -/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here - 49 | class LIBTORRENT_EXPORT Object { - | ^~~~~~ -./../rpc/command_map.h: At global scope: -./../rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 49 | struct command_map_comp : public std::binary_function { - | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/functional:49, - from ../../rak/string_manip.h:44, - from text_element_string.cc:39: -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o window_log_complete.o window_log_complete.cc -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ In file included from ../../rak/priority_queue_default.h:42, from ./../globals.h:41, - from ./../core/download.h:47, - from window_download_chunks_seen.cc:48: + from window.h:44: ../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/12/bits/stl_algobase.h:65, - from /usr/include/c++/12/bits/specfun.h:45, - from /usr/include/c++/12/cmath:1935, - from window_download_chunks_seen.cc:39: + from /usr/include/c++/12/list:60, + from /usr/include/torrent/torrent.h:40: /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -3286,27 +3353,7 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o window_peer_list.o window_peer_list.cc -window_download_chunks_seen.cc: In member function 'virtual void display::WindowDownloadChunksSeen::redraw()': -window_download_chunks_seen.cc:98:82: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = unsigned int; _Tp = torrent::BlockList]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 98 | std::sort(transferChunks.begin(), transferChunks.end(), rak::less2(std::mem_fun(&torrent::BlockList::index), std::mem_fun(&torrent::BlockList::index))); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1377:5: note: declared here - 1377 | mem_fun(_Ret (_Tp::*__f)() const) - | ^~~~~~~ -window_download_chunks_seen.cc:98:124: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = unsigned int; _Tp = torrent::BlockList]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 98 | std::sort(transferChunks.begin(), transferChunks.end(), rak::less2(std::mem_fun(&torrent::BlockList::index), std::mem_fun(&torrent::BlockList::index))); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1377:5: note: declared here - 1377 | mem_fun(_Ret (_Tp::*__f)() const) - | ^~~~~~~ -window_download_chunks_seen.cc:114:90: warning: 'std::const_mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = torrent::Block]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 114 | if (std::find_if((*itrTransfer)->begin(), (*itrTransfer)->end(), std::mem_fun_ref(&torrent::Block::is_transfering)) != (*itrTransfer)->end()) - | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1389:5: note: declared here - 1389 | mem_fun_ref(_Ret (_Tp::*__f)() const) - | ^~~~~~~~~~~ -g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o window_statusbar.o window_statusbar.cc +g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o window_tracker_list.o window_tracker_list.cc ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -3316,16 +3363,15 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o window_string_list.o window_string_list.cc -g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o window_text.o window_text.cc -g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o window_title.o window_title.cc -g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o window_tracker_list.o window_tracker_list.cc -In file included from window_text.cc:40: +In file included from window.h:41, + from window_log_complete.h:42, + from window_log_complete.cc:43: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/functional:49, - from ../../rak/functional.h:41: +In file included from /usr/include/c++/12/string:48, + from canvas.h:40, + from window_log_complete.cc:41: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -3395,15 +3441,22 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -In file included from window.h:41, - from window_log_complete.h:42, - from window_log_complete.cc:43: +In file included from ../../rak/priority_queue_default.h:42, + from ./../globals.h:41, + from window.h:44: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/string:45: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +In file included from window_text.cc:40: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48, - from canvas.h:40, - from window_log_complete.cc:41: +In file included from /usr/include/c++/12/functional:49, + from ../../rak/functional.h:41: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -3475,39 +3528,6 @@ | ^~~~~~~~~~~~~~~ In file included from ../../rak/priority_queue_default.h:42, from ./../globals.h:41, - from window.h:44: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -In file included from ../../rak/priority_queue_default.h:42, - from ./../control.h:43, - from window_statusbar.cc:42: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_algobase.h:65, - from /usr/include/c++/12/deque:60, - from /usr/include/torrent/rate.h:40, - from window_statusbar.cc:39: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -In file included from ../../rak/priority_queue_default.h:42, - from ./../globals.h:41, from ./../core/download.h:47, from window_peer_list.cc:47: ../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] @@ -3519,20 +3539,15 @@ /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from window.h:41, - from window_statusbar.h:42, - from window_statusbar.cc:45: -../../rak/functional.h: At global scope: + from window_string_list.h:43, + from window_string_list.cc:41: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/refwrap.h:39, - from /usr/include/c++/12/deque:65: +In file included from /usr/include/c++/12/string:48, + from canvas.h:40, + from window_string_list.cc:39: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -3584,6 +3599,11 @@ /usr/include/c++/12/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' ../../rak/functional.h:408:31: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 408 | class bind1st_t : public std::unary_function { | ^~~~~~~~~~~~~~ @@ -3602,24 +3622,30 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -In file included from window_tracker_list.cc:39: -../../rak/algorithm.h:118:35: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 118 | struct compare_base : public std::binary_function<_Value, _Value, bool> { - | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/functional:49, - from ../../rak/algorithm.h:41: -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ +In file included from ../../rak/priority_queue_default.h:42, + from ./../globals.h:41, + from window.h:44: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/string:45: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from window.h:41, - from window_string_list.h:43, - from window_string_list.cc:41: + from window_title.h:41, + from window_title.cc:40: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/string:48, from canvas.h:40, - from window_string_list.cc:39: + from window_title.cc:39: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -3699,6 +3725,11 @@ /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from window_peer_list.cc:48: ../../rak/algorithm.h: At global scope: ../../rak/algorithm.h:118:35: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] @@ -3708,6 +3739,11 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -3726,11 +3762,6 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -3740,15 +3771,42 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +In file included from window_tracker_list.cc:39: +../../rak/algorithm.h:118:35: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 118 | struct compare_base : public std::binary_function<_Value, _Value, bool> { + | ^~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/functional:49, + from ../../rak/algorithm.h:41: +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +In file included from ../../rak/priority_queue_default.h:42, + from ./../control.h:43, + from window_statusbar.cc:42: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_algobase.h:65, + from /usr/include/c++/12/deque:60, + from /usr/include/torrent/rate.h:40, + from window_statusbar.cc:39: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from window.h:41, - from window_title.h:41, - from window_title.cc:40: + from window_statusbar.h:42, + from window_statusbar.cc:45: +../../rak/functional.h: At global scope: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48, - from canvas.h:40, - from window_title.cc:39: +In file included from /usr/include/c++/12/bits/refwrap.h:39, + from /usr/include/c++/12/deque:65: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -3818,12 +3876,24 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -In file included from ../../rak/priority_queue_default.h:42, - from ./../globals.h:41, - from window.h:44: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ In file included from ./../rpc/command.h:240, from ./../rpc/command_map.h:45, from text_element.h:44, @@ -3837,10 +3907,6 @@ /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ -In file included from /usr/include/c++/12/string:45: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ ./../rpc/command_map.h: At global scope: ./../rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { @@ -3866,29 +3932,6 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -4019,19 +4062,6 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -path_input.cc: In member function 'input::PathInput::range_type input::PathInput::find_incomplete(utils::Directory&, const std::string&)': -path_input.cc:157:72: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = const utils::directory_entry&; _Arg2 = const __cxx11::basic_string&; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] - 157 | r.first = std::find_if(d.begin(), d.end(), rak::bind2nd(std::ptr_fun(&find_complete_not_compare), f)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1153:5: note: declared here - 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) - | ^~~~~~~ -path_input.cc:158:72: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = const utils::directory_entry&; _Arg2 = const __cxx11::basic_string&; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] - 158 | r.second = std::find_if(r.first, d.end(), rak::bind2nd(std::ptr_fun(&find_complete_compare), f)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1153:5: note: declared here - 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) - | ^~~~~~~ manager.cc: In member function 'void input::Manager::pressed(int)': manager.cc:67:61: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = bool; _Tp = input::Bindings; _Arg = int]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 67 | std::find_if(rbegin(), rend(), std::bind2nd(std::mem_fun(&Bindings::pressed), key)); @@ -4048,6 +4078,19 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +path_input.cc: In member function 'input::PathInput::range_type input::PathInput::find_incomplete(utils::Directory&, const std::string&)': +path_input.cc:157:72: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = const utils::directory_entry&; _Arg2 = const __cxx11::basic_string&; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] + 157 | r.first = std::find_if(d.begin(), d.end(), rak::bind2nd(std::ptr_fun(&find_complete_not_compare), f)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1153:5: note: declared here + 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) + | ^~~~~~~ +path_input.cc:158:72: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = const utils::directory_entry&; _Arg2 = const __cxx11::basic_string&; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] + 158 | r.second = std::find_if(r.first, d.end(), rak::bind2nd(std::ptr_fun(&find_complete_compare), f)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1153:5: note: declared here + 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) + | ^~~~~~~ rm -f libsub_input.a ar cru libsub_input.a bindings.o input_event.o manager.o path_input.o text_input.o ar: `u' modifier ignored since `D' is the default (see `U') @@ -4159,86 +4202,6 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -In file included from parse_commands.cc:42: -../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 174 | struct less2_t : public std::binary_function { - | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48, - from /usr/include/c++/12/bits/locale_classes.h:40, - from /usr/include/c++/12/bits/ios_base.h:41, - from /usr/include/c++/12/ios:42, - from /usr/include/c++/12/istream:38, - from /usr/include/c++/12/fstream:38, - from parse_commands.cc:40: -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -../../rak/functional.h:213:33: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 213 | struct greater2_t : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -../../rak/functional.h:273:29: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 273 | struct invert : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../rak/functional.h:279:27: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 279 | struct on_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../rak/functional.h:299:28: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 299 | struct on2_t : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -../../rak/functional.h:320:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 320 | struct mem_ptr_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../rak/functional.h:341:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 341 | struct mem_ref_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../rak/functional.h:352:38: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 352 | struct const_mem_ref_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../rak/functional.h:395:34: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 395 | struct call_delete : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../rak/functional.h:408:31: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 408 | class bind1st_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../rak/functional.h:433:31: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 433 | class bind2nd_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../rak/functional.h:551:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 551 | class mem_fun2 : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ In file included from ../../rak/priority_queue_default.h:42, from ./../globals.h:41, from command_map.cc:45: @@ -4256,23 +4219,6 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -In file included from ../../rak/priority_queue_default.h:42, - from ./../control.h:43, - from scgi.cc:49: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45, - from ../../rak/socket_address.h:51, - from scgi.cc:40: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -4283,6 +4229,28 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +In file included from command.h:240, + from object_storage.h:49, + from object_storage.cc:39: +command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': +command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] + 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from object_storage.h:46: +/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here + 49 | class LIBTORRENT_EXPORT Object { + | ^~~~~~ +In file included from parse_commands.h:43, + from object_storage.cc:43: +command_map.h: At global scope: +command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 49 | struct command_map_comp : public std::binary_function { + | ^~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/unordered_map:44, + from object_storage.h:45: +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ In file included from ../../rak/priority_queue_default.h:42, from ./../control.h:43, from scgi_task.cc:50: @@ -4300,16 +4268,6 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -In file included from command.h:240, - from command_map.cc:49: -command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': -command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] - 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from command_map.cc:41: -/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here - 49 | class LIBTORRENT_EXPORT Object { - | ^~~~~~ In file included from ../../rak/priority_queue_default.h:42, from ./../thread_base.h:44, from exec_file.cc:49: @@ -4326,47 +4284,6 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -In file included from command_map.cc:50: -command_map.h: At global scope: -command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 49 | struct command_map_comp : public std::binary_function { - | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/refwrap.h:39, - from /usr/include/c++/12/vector:66: -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -In file included from command.h:240, - from object_storage.h:49, - from object_storage.cc:39: -command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': -command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] - 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from object_storage.h:46: -/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here - 49 | class LIBTORRENT_EXPORT Object { - | ^~~~~~ -In file included from command.h:240, - from command_map.h:45, - from parse_commands.h:43, - from parse_commands.cc:47: -command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': -command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] - 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from parse.h:42, - from parse_commands.cc:46: -/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here - 49 | class LIBTORRENT_EXPORT Object { - | ^~~~~~ -command_map.h: At global scope: -command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 49 | struct command_map_comp : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ In file included from command_scheduler.h:43, from command_scheduler.cc:46: ../../rak/functional_fun.h:70:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] @@ -4394,63 +4311,11 @@ /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ -In file included from scgi.h:41, - from scgi.cc:51: -../../rak/functional_fun.h: At global scope: -../../rak/functional_fun.h:70:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 70 | class function_base1 : public std::unary_function { - | ^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48: -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../../rak/functional_fun.h:78:36: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 78 | class function_base2 : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -parse_commands.cc:55:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 55 | struct command_map_is_space : std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -parse_commands.cc:61:38: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 61 | struct command_map_is_newline : std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -In file included from parse_commands.h:43, - from object_storage.cc:43: -command_map.h: At global scope: -command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 49 | struct command_map_comp : public std::binary_function { - | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/unordered_map:44, - from object_storage.h:45: -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -parse_commands.cc: In function 'rpc::parse_command_type rpc::parse_command(target_type, const char*, const char*)': -parse_commands.cc:134:46: warning: 'constexpr std::unary_negate<_Predicate> std::not1(const _Predicate&) [with _Predicate = rpc::command_map_is_space]' is deprecated: use 'std::not_fn' instead [-Wdeprecated-declarations] - 134 | first = std::find_if(first, last, std::not1(command_map_is_space())); - | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1046:5: note: declared here - 1046 | not1(const _Predicate& __pred) - | ^~~~ -parse_commands.cc:142:46: warning: 'constexpr std::unary_negate<_Predicate> std::not1(const _Predicate&) [with _Predicate = rpc::command_map_is_space]' is deprecated: use 'std::not_fn' instead [-Wdeprecated-declarations] - 142 | first = std::find_if(first, last, std::not1(command_map_is_space())); - | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1046:5: note: declared here - 1046 | not1(const _Predicate& __pred) - | ^~~~ In file included from ../../rak/priority_queue_default.h:42, from ./../globals.h:41, from ./../core/download.h:47, @@ -4465,17 +4330,48 @@ /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ -parse_commands.cc:153:46: warning: 'constexpr std::unary_negate<_Predicate> std::not1(const _Predicate&) [with _Predicate = rpc::command_map_is_space]' is deprecated: use 'std::not_fn' instead [-Wdeprecated-declarations] - 153 | first = std::find_if(first, last, std::not1(command_map_is_space())); - | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1046:5: note: declared here - 1046 | not1(const _Predicate& __pred) - | ^~~~ ../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from command.h:240, + from command_map.cc:49: +command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': +command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] + 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from command_map.cc:41: +/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here + 49 | class LIBTORRENT_EXPORT Object { + | ^~~~~~ +In file included from ../../rak/priority_queue_default.h:42, + from ./../control.h:43, + from scgi.cc:49: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/string:45, + from ../../rak/socket_address.h:51, + from scgi.cc:40: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from command_map.cc:50: +command_map.h: At global scope: +command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 49 | struct command_map_comp : public std::binary_function { + | ^~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/refwrap.h:39, + from /usr/include/c++/12/vector:66: +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -4486,6 +4382,86 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +In file included from parse_commands.cc:42: +../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 174 | struct less2_t : public std::binary_function { + | ^~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/string:48, + from /usr/include/c++/12/bits/locale_classes.h:40, + from /usr/include/c++/12/bits/ios_base.h:41, + from /usr/include/c++/12/ios:42, + from /usr/include/c++/12/istream:38, + from /usr/include/c++/12/fstream:38, + from parse_commands.cc:40: +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +../../rak/functional.h:213:33: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 213 | struct greater2_t : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +../../rak/functional.h:273:29: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 273 | struct invert : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../rak/functional.h:279:27: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 279 | struct on_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../rak/functional.h:299:28: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 299 | struct on2_t : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +../../rak/functional.h:320:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 320 | struct mem_ptr_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../rak/functional.h:341:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 341 | struct mem_ref_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../rak/functional.h:352:38: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 352 | struct const_mem_ref_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../rak/functional.h:395:34: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 395 | struct call_delete : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../rak/functional.h:408:31: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 408 | class bind1st_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../rak/functional.h:433:31: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 433 | class bind2nd_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../rak/functional.h:551:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 551 | class mem_fun2 : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -4495,26 +4471,51 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +In file included from scgi.h:41, + from scgi_task.cc:52: +../../rak/functional_fun.h: At global scope: +../../rak/functional_fun.h:70:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 70 | class function_base1 : public std::unary_function { + | ^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/string:48: +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../rak/functional_fun.h:78:36: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 78 | class function_base2 : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ In file included from command.h:240, - from command_map.h:45, - from parse_commands.h:43, - from scgi.cc:52: + from command.cc:42: command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from command_map.h:43: +In file included from parse.h:42, + from command.cc:40: /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ In file included from command.h:240, - from command.cc:42: + from command_map.h:45, + from parse_commands.h:43, + from command_scheduler.cc:48: command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from parse.h:42, - from command.cc:40: +In file included from command_scheduler_item.h:43: /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ @@ -4526,7 +4527,7 @@ 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from scgi.h:41, - from scgi_task.cc:52: + from scgi.cc:51: ../../rak/functional_fun.h: At global scope: ../../rak/functional_fun.h:70:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 70 | class function_base1 : public std::unary_function { @@ -4553,13 +4554,32 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -scgi.cc: In member function 'virtual void rpc::SCgi::event_read()': -scgi.cc:145:79: warning: 'std::const_mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = rpc::SCgiTask]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 145 | SCgiTask* task = std::find_if(m_task, m_task + max_tasks, std::mem_fun_ref(&SCgiTask::is_available)); - | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1389:5: note: declared here - 1389 | mem_fun_ref(_Ret (_Tp::*__f)() const) - | ^~~~~~~~~~~ +command_scheduler.cc: In member function 'std::vector::iterator rpc::CommandScheduler::find(const std::string&)': +command_scheduler.cc:58:67: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = const __cxx11::basic_string&; _Tp = rpc::CommandSchedulerItem]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 58 | return std::find_if(begin(), end(), rak::equal(key, std::mem_fun(&CommandSchedulerItem::key))); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1377:5: note: declared here + 1377 | mem_fun(_Ret (_Tp::*__f)() const) + | ^~~~~~~ +In file included from command.h:240, + from command_map.h:45, + from parse_commands.h:43, + from scgi.cc:52: +command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': +command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] + 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from command_map.h:43: +/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here + 49 | class LIBTORRENT_EXPORT Object { + | ^~~~~~ +command_map.h: At global scope: +command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 49 | struct command_map_comp : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -4569,6 +4589,13 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +scgi.cc: In member function 'virtual void rpc::SCgi::event_read()': +scgi.cc:145:79: warning: 'std::const_mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = rpc::SCgiTask]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 145 | SCgiTask* task = std::find_if(m_task, m_task + max_tasks, std::mem_fun_ref(&SCgiTask::is_available)); + | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1389:5: note: declared here + 1389 | mem_fun_ref(_Ret (_Tp::*__f)() const) + | ^~~~~~~~~~~ ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -4581,12 +4608,13 @@ In file included from command.h:240, from command_map.h:45, from parse_commands.h:43, - from command_scheduler.cc:48: + from parse_commands.cc:47: command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from command_scheduler_item.h:43: +In file included from parse.h:42, + from parse_commands.cc:46: /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ @@ -4597,22 +4625,6 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -command_scheduler.cc: In member function 'std::vector::iterator rpc::CommandScheduler::find(const std::string&)': -command_scheduler.cc:58:67: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = const __cxx11::basic_string&; _Tp = rpc::CommandSchedulerItem]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 58 | return std::find_if(begin(), end(), rak::equal(key, std::mem_fun(&CommandSchedulerItem::key))); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1377:5: note: declared here - 1377 | mem_fun(_Ret (_Tp::*__f)() const) - | ^~~~~~~ -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ In file included from command.h:240, from command_map.h:45, from parse_commands.h:43, @@ -4635,6 +4647,37 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +parse_commands.cc:55:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 55 | struct command_map_is_space : std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +parse_commands.cc:61:38: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 61 | struct command_map_is_newline : std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +parse_commands.cc: In function 'rpc::parse_command_type rpc::parse_command(target_type, const char*, const char*)': +parse_commands.cc:134:46: warning: 'constexpr std::unary_negate<_Predicate> std::not1(const _Predicate&) [with _Predicate = rpc::command_map_is_space]' is deprecated: use 'std::not_fn' instead [-Wdeprecated-declarations] + 134 | first = std::find_if(first, last, std::not1(command_map_is_space())); + | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1046:5: note: declared here + 1046 | not1(const _Predicate& __pred) + | ^~~~ +parse_commands.cc:142:46: warning: 'constexpr std::unary_negate<_Predicate> std::not1(const _Predicate&) [with _Predicate = rpc::command_map_is_space]' is deprecated: use 'std::not_fn' instead [-Wdeprecated-declarations] + 142 | first = std::find_if(first, last, std::not1(command_map_is_space())); + | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1046:5: note: declared here + 1046 | not1(const _Predicate& __pred) + | ^~~~ +parse_commands.cc:153:46: warning: 'constexpr std::unary_negate<_Predicate> std::not1(const _Predicate&) [with _Predicate = rpc::command_map_is_space]' is deprecated: use 'std::not_fn' instead [-Wdeprecated-declarations] + 153 | first = std::find_if(first, last, std::not1(command_map_is_space())); + | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1046:5: note: declared here + 1046 | not1(const _Predicate& __pred) + | ^~~~ In copy constructor 'rpc::command_map_data_type::command_map_data_type(const rpc::command_map_data_type&)', inlined from 'constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = const char*&; _U2 = rpc::command_map_data_type; typename std::enable_if<(std::_PCC::_MoveConstructiblePair<_U1, _U2>() && std::_PCC::_ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type = true; _T1 = const char* const; _T2 = rpc::command_map_data_type]' at /usr/include/c++/12/bits/stl_pair.h:535:35, inlined from 'std::map::iterator rpc::CommandMap::insert(std::map::key_type, int, const char*, const char*)' at command_map.cc:87:33: @@ -4687,6 +4730,15 @@ g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o element_tracker_list.o element_tracker_list.cc g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o element_transfer_list.o element_transfer_list.cc g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o root.o root.cc +In file included from element_file_list.cc:39: +../../rak/algorithm.h:118:35: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 118 | struct compare_base : public std::binary_function<_Value, _Value, bool> { + | ^~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/functional:49, + from ../../rak/algorithm.h:41: +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ In file included from download.cc:39: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { @@ -4762,58 +4814,15 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -In file included from element_file_list.cc:39: -../../rak/algorithm.h:118:35: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 118 | struct compare_base : public std::binary_function<_Value, _Value, bool> { - | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/functional:49, - from ../../rak/algorithm.h:41: -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -In file included from ../../rak/priority_queue_default.h:42, - from ./../control.h:43, - from element_string_list.cc:44: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45, - from /usr/include/torrent/exceptions.h:47, - from element_string_list.cc:39: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -In file included from ../../rak/priority_queue_default.h:42, - from ./../display/manager.h:41, - from element_log_complete.cc:44: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45, - from /usr/include/torrent/exceptions.h:47, - from element_log_complete.cc:39: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ./../display/window.h:41, - from ./../display/window_string_list.h:43, - from element_string_list.h:48, - from element_string_list.cc:45: -../../rak/functional.h: At global scope: + from ./../display/window_download_chunks_seen.h:42, + from element_chunks_seen.cc:42: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48: +In file included from /usr/include/c++/12/string:48, + from /usr/include/torrent/exceptions.h:47, + from element_chunks_seen.cc:39: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -4883,15 +4892,46 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +In file included from ../../rak/priority_queue_default.h:42, + from ./../display/manager.h:41, + from element_log_complete.cc:44: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/string:45, + from /usr/include/torrent/exceptions.h:47, + from element_log_complete.cc:39: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from ../../rak/priority_queue_default.h:42, + from ./../globals.h:41, + from ./../display/window.h:44: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/string:45: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ./../display/window.h:41, - from ./../display/window_tracker_list.h:40, - from element_tracker_list.cc:44: + from ./../display/window_log_complete.h:42, + from element_log_complete.cc:45: +../../rak/functional.h: At global scope: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48, - from /usr/include/torrent/exceptions.h:47, - from element_tracker_list.cc:39: +In file included from /usr/include/c++/12/string:48: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -4961,15 +5001,49 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +In file included from ../../rak/priority_queue_default.h:42, + from ./../display/manager.h:41, + from element_file_list.cc:45: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_algobase.h:65, + from /usr/include/c++/12/algorithm:60, + from ../../rak/algorithm.h:40: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from ../../rak/priority_queue_default.h:42, + from ./../control.h:43, + from element_string_list.cc:44: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/string:45, + from /usr/include/torrent/exceptions.h:47, + from element_string_list.cc:39: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ./../display/window.h:41, - from ./../display/window_download_chunks_seen.h:42, - from element_chunks_seen.cc:42: + from ./../display/window_download_transfer_list.h:43, + from element_transfer_list.cc:42: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/string:48, from /usr/include/torrent/exceptions.h:47, - from element_chunks_seen.cc:39: + from element_transfer_list.cc:39: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -5039,14 +5113,17 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -In file included from ./../display/window.h:41, - from ./../display/window_log_complete.h:42, - from element_log_complete.cc:45: -../../rak/functional.h: At global scope: +In file included from download_list.cc:41: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48: +In file included from /usr/include/c++/12/string:48, + from /usr/include/c++/12/bits/locale_classes.h:40, + from /usr/include/c++/12/bits/ios_base.h:41, + from /usr/include/c++/12/ios:42, + from /usr/include/c++/12/istream:38, + from /usr/include/c++/12/sstream:38, + from download_list.cc:39: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -5056,17 +5133,6 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -In file included from ./../display/window.h:41, - from element_base.cc:42: -../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 174 | struct less2_t : public std::binary_function { - | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48, - from /usr/include/torrent/exceptions.h:47, - from element_base.cc:39: -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ ../../rak/functional.h:273:29: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 273 | struct invert : public std::unary_function { | ^~~~~~~~~~~~~~ @@ -5079,12 +5145,6 @@ /usr/include/c++/12/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ -../../rak/functional.h:213:33: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 213 | struct greater2_t : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ ../../rak/functional.h:299:28: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 299 | struct on2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ @@ -5097,52 +5157,18 @@ /usr/include/c++/12/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ -../../rak/functional.h:273:29: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 273 | struct invert : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ ../../rak/functional.h:341:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 341 | struct mem_ref_t : public std::unary_function { | ^~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ -../../rak/functional.h:279:27: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 279 | struct on_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ ../../rak/functional.h:352:38: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 352 | struct const_mem_ref_t : public std::unary_function { | ^~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ -../../rak/functional.h:299:28: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 299 | struct on2_t : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -../../rak/functional.h:320:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 320 | struct mem_ptr_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -In file included from ../../rak/priority_queue_default.h:42, - from ./../globals.h:41, - from ./../display/window.h:44: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ ../../rak/functional.h:395:34: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 395 | struct call_delete : public std::unary_function { | ^~~~~~~~~~~~~~ @@ -5167,20 +5193,56 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +In file included from ./../display/window.h:41, + from element_base.cc:42: +../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 174 | struct less2_t : public std::binary_function { + | ^~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/string:48, + from /usr/include/torrent/exceptions.h:47, + from element_base.cc:39: +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +../../rak/functional.h:213:33: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 213 | struct greater2_t : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +../../rak/functional.h:273:29: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 273 | struct invert : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../rak/functional.h:279:27: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 279 | struct on_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../../rak/functional.h:299:28: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 299 | struct on2_t : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +../../rak/functional.h:320:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 320 | struct mem_ptr_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ ../../rak/functional.h:341:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 341 | struct mem_ref_t : public std::unary_function { | ^~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/functional.h:352:38: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 352 | struct const_mem_ref_t : public std::unary_function { | ^~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' /usr/include/c++/12/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ @@ -5223,39 +5285,15 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -In file included from ../../rak/priority_queue_default.h:42, - from ./../globals.h:41, - from ./../display/window.h:44: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ In file included from ./../display/window.h:41, - from ./../display/window_download_transfer_list.h:43, - from element_transfer_list.cc:42: + from ./../display/window_tracker_list.h:40, + from element_tracker_list.cc:44: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/string:48, from /usr/include/torrent/exceptions.h:47, - from element_transfer_list.cc:39: + from element_tracker_list.cc:39: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -5325,6 +5363,26 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +In file included from ./../rpc/command.h:240, + from ./../rpc/command_map.h:45, + from ./../display/text_element.h:44, + from ./../display/text_element_string.h:44, + from element_file_list.cc:46: +./../rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': +./../rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] + 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from ./../rpc/command_map.h:43: +/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here + 49 | class LIBTORRENT_EXPORT Object { + | ^~~~~~ +./../rpc/command_map.h: At global scope: +./../rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 49 | struct command_map_comp : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ In file included from ../../rak/priority_queue_default.h:42, from ./../globals.h:41, from ./../display/window.h:44: @@ -5341,31 +5399,12 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ../../rak/priority_queue_default.h:42, - from ./../display/manager.h:41, - from element_peer_list.cc:46: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45, - from /usr/include/torrent/exceptions.h:47, - from element_peer_list.cc:39: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -In file included from ../../rak/priority_queue_default.h:42, - from ./../display/manager.h:41, - from element_file_list.cc:45: + from ./../globals.h:41, + from ./../display/window.h:44: ../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | : public std::iterator { | ^~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_algobase.h:65, - from /usr/include/c++/12/algorithm:60, - from ../../rak/algorithm.h:40: +In file included from /usr/include/c++/12/string:45: /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -5383,17 +5422,15 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -In file included from download_list.cc:41: +In file included from ./../display/window.h:41, + from ./../display/window_string_list.h:43, + from element_string_list.h:48, + from element_string_list.cc:45: +../../rak/functional.h: At global scope: ../../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48, - from /usr/include/c++/12/bits/locale_classes.h:40, - from /usr/include/c++/12/bits/ios_base.h:41, - from /usr/include/c++/12/ios:42, - from /usr/include/c++/12/istream:38, - from /usr/include/c++/12/sstream:38, - from download_list.cc:39: +In file included from /usr/include/c++/12/string:48: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -5463,25 +5500,15 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ In file included from ../../rak/priority_queue_default.h:42, - from ./../globals.h:41, - from ./../core/download.h:47, - from element_download_list.cc:43: + from ./../display/manager.h:41, + from element_peer_list.cc:46: ../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/12/string:45, from /usr/include/torrent/exceptions.h:47, - from element_download_list.cc:39: + from element_peer_list.cc:39: /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -5490,15 +5517,6 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ In file included from ./../rpc/command.h:240, from ./../rpc/command_map.h:45, from ./../display/text_element.h:44, @@ -5522,19 +5540,6 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -In file included from ./../rpc/command.h:240, - from ./../rpc/command_map.h:45, - from ./../display/text_element.h:44, - from ./../display/window_text.h:42, - from element_menu.cc:42: -./../rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': -./../rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] - 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from ./../rpc/command_map.h:43: -/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here - 49 | class LIBTORRENT_EXPORT Object { - | ^~~~~~ In file included from ../../rak/priority_queue_default.h:42, from ./../globals.h:41, from ./../display/window.h:44, @@ -5551,21 +5556,38 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -./../rpc/command_map.h: At global scope: -./../rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 49 | struct command_map_comp : public std::binary_function { - | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48, - from /usr/include/torrent/exceptions.h:47, - from element_menu.cc:39: -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ In file included from ./../rpc/command.h:240, from ./../rpc/command_map.h:45, from ./../display/text_element.h:44, - from ./../display/text_element_string.h:44, - from element_file_list.cc:46: + from ./../display/window_text.h:42, + from element_menu.cc:42: ./../rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ./../rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); @@ -5574,6 +5596,16 @@ /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ +./../rpc/command_map.h: At global scope: +./../rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 49 | struct command_map_comp : public std::binary_function { + | ^~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/string:48, + from /usr/include/torrent/exceptions.h:47, + from element_menu.cc:39: +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ In file included from ./../rpc/command.h:240, from ./../rpc/command_map.h:45, from ./../display/text_element.h:44, @@ -5587,21 +5619,6 @@ /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ -./../rpc/command_map.h: At global scope: -./../rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 49 | struct command_map_comp : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -./../rpc/command_map.h: At global scope: -./../rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 49 | struct command_map_comp : public std::binary_function { - | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48: -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ In file included from ../../rak/priority_queue_default.h:42, from ./../globals.h:41, from ./../display/window.h:44, @@ -5613,15 +5630,14 @@ /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ +./../rpc/command_map.h: At global scope: +./../rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 49 | struct command_map_comp : public std::binary_function { + | ^~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/string:48: +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ ../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); @@ -5636,53 +5652,6 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -In file included from ./../rpc/command.h:240, - from ./../rpc/command_map.h:45, - from ./../rpc/parse_commands.h:43, - from element_download_list.cc:50: -./../rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': -./../rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] - 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from element_download_list.cc:40: -/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here - 49 | class LIBTORRENT_EXPORT Object { - | ^~~~~~ -element_peer_list.cc: In constructor 'ui::ElementPeerList::ElementPeerList(core::Download*)': -element_peer_list.cc:65:77: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = void; _Tp = __cxx11::list; _Arg = torrent::Peer* const&]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 65 | rak::bind1st(std::mem_fun(&PList::push_back), &m_list)); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1395:5: note: declared here - 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) - | ^~~~~~~ -./../rpc/command_map.h: At global scope: -./../rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 49 | struct command_map_comp : public std::binary_function { - | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48: -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -In file included from ../../rak/priority_queue_default.h:42, - from ./../globals.h:41, - from ./../core/download.h:47, - from download.cc:50: -../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_construct.h:61, - from /usr/include/c++/12/bits/alloc_traits.h:33, - from /usr/include/c++/12/ext/alloc_traits.h:34, - from /usr/include/c++/12/unordered_map:41, - from /usr/include/c++/12/functional:61: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -5726,14 +5695,50 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../../rak/priority_queue_default.h:113:18: required from here -../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) +In file included from ../../rak/priority_queue_default.h:42, + from ./../globals.h:41, + from ./../core/download.h:47, + from download.cc:50: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_construct.h:61, + from /usr/include/c++/12/bits/alloc_traits.h:33, + from /usr/include/c++/12/ext/alloc_traits.h:34, + from /usr/include/c++/12/unordered_map:41, + from /usr/include/c++/12/functional:61: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from ../../rak/priority_queue_default.h:42, + from ./../globals.h:41, + from ./../core/download.h:47, + from element_download_list.cc:43: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/string:45, + from /usr/include/torrent/exceptions.h:47, + from element_download_list.cc:39: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +element_peer_list.cc: In constructor 'ui::ElementPeerList::ElementPeerList(core::Download*)': +element_peer_list.cc:65:77: warning: 'std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = void; _Tp = __cxx11::list; _Arg = torrent::Peer* const&]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 65 | rak::bind1st(std::mem_fun(&PList::push_back), &m_list)); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1395:5: note: declared here + 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) | ^~~~~~~ ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here @@ -5744,6 +5749,26 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +In file included from ./../rpc/command.h:240, + from ./../rpc/command_map.h:45, + from ./../rpc/parse_commands.h:43, + from element_download_list.cc:50: +./../rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': +./../rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] + 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from element_download_list.cc:40: +/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here + 49 | class LIBTORRENT_EXPORT Object { + | ^~~~~~ +./../rpc/command_map.h: At global scope: +./../rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 49 | struct command_map_comp : public std::binary_function { + | ^~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/string:48: +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ In file included from ../../rak/priority_queue_default.h:42, from ./../core/curl_stack.h:43, from ./../core/poll_manager.h:40, @@ -5752,6 +5777,21 @@ ../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | : public std::iterator { | ^~~~~~~~ +In file included from /usr/include/c++/12/string:45, + from /usr/include/c++/12/bits/locale_classes.h:40, + from /usr/include/c++/12/bits/ios_base.h:41, + from /usr/include/c++/12/ios:42, + from /usr/include/c++/12/istream:38, + from /usr/include/c++/12/fstream:38, + from root.cc:39: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ./../rpc/command.h:240, from ./../rpc/command_map.h:45, from ./../display/text_element.h:44, @@ -5765,16 +5805,6 @@ /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ -In file included from /usr/include/c++/12/string:45, - from /usr/include/c++/12/bits/locale_classes.h:40, - from /usr/include/c++/12/bits/ios_base.h:41, - from /usr/include/c++/12/ios:42, - from /usr/include/c++/12/istream:38, - from /usr/include/c++/12/fstream:38, - from root.cc:39: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ ./../rpc/command_map.h: At global scope: ./../rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { @@ -5782,11 +5812,15 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ In file included from ./../display/window.h:41, from ./../display/window_http_queue.h:42, from root.cc:50: @@ -5877,6 +5911,18 @@ ./../rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from ./../rpc/command.h:240, + from ./../rpc/command_map.h:45, + from ./../rpc/parse_commands.h:43, + from root.cc:56: +./../rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': +./../rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] + 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from ./../rpc/command_map.h:43: +/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here + 49 | class LIBTORRENT_EXPORT Object { + | ^~~~~~ In file included from ./../core/view.h:55, from download_list.cc:50: /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here @@ -5889,6 +5935,22 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +./../rpc/command_map.h: At global scope: +./../rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 49 | struct command_map_comp : public std::binary_function { + | ^~~~~~~~~~~~~~~ +../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../../rak/priority_queue_default.h:113:18: required from here +../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -5903,25 +5965,10 @@ 87 | throw std::logic_error("ui::DownloadList::~DownloadList() called on an active object"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ download_list.cc:87:5: note: in C++11 destructors default to 'noexcept' -In file included from ./../rpc/command.h:240, - from ./../rpc/command_map.h:45, - from ./../rpc/parse_commands.h:43, - from root.cc:56: -./../rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': -./../rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] - 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from ./../rpc/command_map.h:43: -/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here - 49 | class LIBTORRENT_EXPORT Object { - | ^~~~~~ -./../rpc/command_map.h: At global scope: -./../rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 49 | struct command_map_comp : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ +root.cc: In member function 'void ui::Root::load_input_history()': +root.cc:416:23: warning: comparison of integer expressions of different signedness: 'int' and 'const std::__cxx11::basic_string::size_type' {aka 'const long unsigned int'} [-Wsign-compare] + 416 | if (delim_pos != std::string::npos) { + | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -5931,10 +5978,6 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -root.cc: In member function 'void ui::Root::load_input_history()': -root.cc:416:23: warning: comparison of integer expressions of different signedness: 'int' and 'const std::__cxx11::basic_string::size_type' {aka 'const long unsigned int'} [-Wsign-compare] - 416 | if (delim_pos != std::string::npos) { - | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ../../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../../rak/priority_queue_default.h:113:18: required from here ../../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -5976,26 +6019,6 @@ g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o command_throttle.o command_throttle.cc g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o command_tracker.o command_tracker.cc g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o command_scheduler.o command_scheduler.cc -g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o command_ui.o command_ui.cc -In file included from ../rak/priority_queue_default.h:42, - from core/curl_stack.h:43, - from core/poll_manager.h:40, - from core/manager.h:47, - from command_file.cc:45: -../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45, - from ../rak/path.h:44, - from command_file.cc:40: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ../rak/priority_queue_default.h:42, from core/curl_stack.h:43, from core/poll_manager.h:40, @@ -6010,179 +6033,6 @@ /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ -../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -In file included from ../rak/priority_queue_default.h:42, - from globals.h:41, - from command_dynamic.cc:43: -../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_algobase.h:65, - from /usr/include/c++/12/algorithm:60, - from command_dynamic.cc:39: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -In file included from ../rak/priority_queue_default.h:42, - from ./globals.h:41, - from core/download.h:47, - from command_local.cc:53: -../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_construct.h:61, - from /usr/include/c++/12/bits/alloc_traits.h:33, - from /usr/include/c++/12/ext/alloc_traits.h:34, - from /usr/include/c++/12/unordered_map:41, - from /usr/include/c++/12/functional:61, - from command_local.cc:40: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -In file included from rpc/command.h:240, - from command_helpers.h:40, - from command_file.cc:49: -rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': -rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] - 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from rpc/command.h:43: -/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here - 49 | class LIBTORRENT_EXPORT Object { - | ^~~~~~ -In file included from rpc/parse_commands.h:43, - from command_helpers.h:41: -rpc/command_map.h: At global scope: -rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 49 | struct command_map_comp : public std::binary_function { - | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48: -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -In file included from ../rak/priority_queue_default.h:42, - from ./globals.h:41, - from ui/download_list.h:41, - from ui/root.h:42, - from command_groups.cc:44: -../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45, - from /usr/include/torrent/download/resource_manager.h:40, - from command_groups.cc:39: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -In file included from ../rak/priority_queue_default.h:42, - from globals.h:41, - from command_helpers.cc:41: -../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45, - from /usr/include/torrent/exceptions.h:47, - from command_helpers.cc:39: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -In file included from ../rak/priority_queue_default.h:42, - from globals.h:41, - from command_ip.cc:45: -../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45, - from /usr/include/c++/12/bits/locale_classes.h:40, - from /usr/include/c++/12/bits/ios_base.h:41, - from /usr/include/c++/12/ios:42, - from /usr/include/c++/12/istream:38, - from /usr/include/c++/12/fstream:38, - from command_ip.cc:39: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -In file included from ../rak/priority_queue_default.h:42, - from ./globals.h:41, - from core/download.h:47, - from command_logging.cc:11: -../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_algobase.h:65, - from /usr/include/c++/12/vector:60, - from /usr/include/torrent/data/chunk_utils.h:40, - from command_logging.cc:6: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -In file included from ../rak/priority_queue_default.h:42, - from core/curl_stack.h:43, - from core/poll_manager.h:40, - from core/manager.h:47, - from command_throttle.cc:45: -../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45, - from ../rak/socket_address.h:51, - from ../rak/address_info.h:47, - from command_throttle.cc:40: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -In file included from command_download.cc:47: -../rak/regex.h:53:27: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 53 | class regex : public std::unary_function { - | ^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/functional:49, - from command_download.cc:39: -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../rak/priority_queue_default.h:113:18: required from here -../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ In file included from main.cc:53: ../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 174 | struct less2_t : public std::binary_function { @@ -6264,16 +6114,12 @@ 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../rak/priority_queue_default.h:42, - from ./globals.h:41, - from core/download.h:47, - from command_tracker.cc:46: + from core/dht_manager.h:40, + from main.cc:60: ../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | : public std::iterator { | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45, - from ../rak/socket_address.h:51, - from ../rak/address_info.h:47, - from command_tracker.cc:40: +In file included from /usr/include/c++/12/string:45: /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -6288,28 +6134,52 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from ../rak/priority_queue_default.h:42, - from core/dht_manager.h:40, - from main.cc:60: + from globals.h:41, + from command_dynamic.cc:43: ../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | : public std::iterator { | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45: +In file included from /usr/include/c++/12/bits/stl_algobase.h:65, + from /usr/include/c++/12/algorithm:60, + from command_dynamic.cc:39: /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from ../rak/priority_queue_default.h:42, + from core/curl_stack.h:43, + from core/poll_manager.h:40, + from core/manager.h:47, + from command_file.cc:45: +../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/string:45, + from ../rak/path.h:44, + from command_file.cc:40: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from ../rak/priority_queue_default.h:42, from ./globals.h:41, from core/download.h:47, - from command_network.cc:54: + from command_logging.cc:11: ../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | : public std::iterator { | ^~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_construct.h:61, - from /usr/include/c++/12/bits/alloc_traits.h:33, - from /usr/include/c++/12/ext/alloc_traits.h:34, - from /usr/include/c++/12/unordered_map:41, - from /usr/include/c++/12/functional:61, - from command_network.cc:39: +In file included from /usr/include/c++/12/bits/stl_algobase.h:65, + from /usr/include/c++/12/vector:60, + from /usr/include/torrent/data/chunk_utils.h:40, + from command_logging.cc:6: /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -6318,6 +6188,73 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from ../rak/priority_queue_default.h:42, + from globals.h:41, + from command_helpers.cc:41: +../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/string:45, + from /usr/include/torrent/exceptions.h:47, + from command_helpers.cc:39: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from ../rak/priority_queue_default.h:42, + from globals.h:41, + from command_ip.cc:45: +../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/string:45, + from /usr/include/c++/12/bits/locale_classes.h:40, + from /usr/include/c++/12/bits/ios_base.h:41, + from /usr/include/c++/12/ios:42, + from /usr/include/c++/12/istream:38, + from /usr/include/c++/12/fstream:38, + from command_ip.cc:39: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +In file included from ../rak/priority_queue_default.h:42, + from core/curl_stack.h:43, + from core/poll_manager.h:40, + from core/manager.h:47, + from command_throttle.cc:45: +../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/string:45, + from ../rak/socket_address.h:51, + from ../rak/address_info.h:47, + from command_throttle.cc:40: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from ../rak/priority_queue_default.h:42, + from ./globals.h:41, + from core/download.h:47, + from command_tracker.cc:46: +../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/string:45, + from ../rak/socket_address.h:51, + from ../rak/address_info.h:47, + from command_tracker.cc:40: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ ../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); @@ -6344,19 +6281,24 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' In file included from rpc/command.h:240, - from rpc/command_map.h:45, - from rpc/parse_commands.h:43, - from command_groups.cc:46: + from command_helpers.h:40, + from command_file.cc:49: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from rpc/parse.h:42, - from command_groups.cc:45: +In file included from rpc/command.h:43: /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ +In file included from rpc/parse_commands.h:43, + from command_helpers.h:41: rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { @@ -6365,32 +6307,44 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../rak/priority_queue_default.h:113:18: required from here +../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ +In file included from rpc/command_scheduler.h:43, + from main.cc:71: +../rak/functional_fun.h: At global scope: +../rak/functional_fun.h:70:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 70 | class function_base1 : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../rak/functional_fun.h:78:36: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 78 | class function_base2 : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ In file included from rpc/command.h:240, from command_helpers.h:40, - from command_scheduler.cc:49: + from command_dynamic.cc:45: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from core/view.h:55, - from command_scheduler.cc:44: +In file included from rpc/command.h:43: /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ -In file included from rpc/parse_commands.h:43, - from command_helpers.h:41: -rpc/command_map.h: At global scope: -rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 49 | struct command_map_comp : public std::binary_function { - | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/refwrap.h:39, - from /usr/include/c++/12/vector:66: -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ In file included from rpc/command.h:240, from command_helpers.h:40, - from command_ip.cc:46: + from command_tracker.cc:51: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); @@ -6409,106 +6363,35 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -In file included from ../rak/priority_queue_default.h:42, - from core/curl_stack.h:43, - from core/poll_manager.h:40, - from core/manager.h:47, - from command_peer.cc:49: -../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45, - from ../rak/path.h:44, - from command_peer.cc:40: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -In file included from command_ui.cc:44: -../rak/algorithm.h:118:35: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 118 | struct compare_base : public std::binary_function<_Value, _Value, bool> { - | ^~~~~~~~~~~~~~~ +In file included from rpc/parse_commands.h:43, + from command_helpers.h:41: +rpc/command_map.h: At global scope: +rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 49 | struct command_map_comp : public std::binary_function { + | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/string:48, from /usr/include/c++/12/bitset:47, - from /usr/include/c++/12/regex:38, - from command_ui.cc:42: -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -In file included from command_ui.cc:45: -../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 174 | struct less2_t : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -../rak/functional.h:213:33: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 213 | struct greater2_t : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -../rak/functional.h:273:29: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 273 | struct invert : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../rak/functional.h:279:27: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 279 | struct on_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../rak/functional.h:299:28: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 299 | struct on2_t : public std::binary_function { - | ^~~~~~~~~~~~~~~ + from /usr/include/torrent/utils/log.h:40, + from command_dynamic.cc:40: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -../rak/functional.h:320:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 320 | struct mem_ptr_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../rak/functional.h:341:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 341 | struct mem_ref_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../rak/functional.h:352:38: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 352 | struct const_mem_ref_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../rak/functional.h:395:34: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 395 | struct call_delete : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../rak/functional.h:408:31: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 408 | class bind1st_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../rak/functional.h:433:31: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 433 | class bind2nd_t : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../rak/functional.h:551:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 551 | class mem_fun2 : public std::binary_function { - | ^~~~~~~~~~~~~~~ +In file included from rpc/command.h:240, + from rpc/command_map.h:45, + from rpc/parse_commands.h:43, + from main.cc:73: +rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': +rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] + 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from core/dht_manager.h:42: +/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here + 49 | class LIBTORRENT_EXPORT Object { + | ^~~~~~ +rpc/command_map.h: At global scope: +rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 49 | struct command_map_comp : public std::binary_function { + | ^~~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -6523,32 +6406,73 @@ /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ -In file included from command_ui.cc:46: -../rak/functional_fun.h:70:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 70 | class function_base1 : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../rak/functional_fun.h:78:36: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 78 | class function_base2 : public std::binary_function { - | ^~~~~~~~~~~~~~~ +In file included from rpc/command.h:240, + from command_helpers.h:40, + from command_scheduler.cc:49: +rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': +rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] + 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from core/view.h:55, + from command_scheduler.cc:44: +/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here + 49 | class LIBTORRENT_EXPORT Object { + | ^~~~~~ +In file included from rpc/parse_commands.h:43, + from command_helpers.h:41: +rpc/command_map.h: At global scope: +rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 49 | struct command_map_comp : public std::binary_function { + | ^~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/string:48: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +command_tracker.cc: In function 'torrent::Object apply_enable_trackers(int64_t)': +command_tracker.cc:103:37: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::Tracker]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 103 | arg ? std::mem_fun(&torrent::Tracker::enable) : std::mem_fun(&torrent::Tracker::disable)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1371:5: note: declared here + 1371 | mem_fun(_Ret (_Tp::*__f)()) + | ^~~~~~~ +command_tracker.cc:103:79: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::Tracker]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 103 | arg ? std::mem_fun(&torrent::Tracker::enable) : std::mem_fun(&torrent::Tracker::disable)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1371:5: note: declared here + 1371 | mem_fun(_Ret (_Tp::*__f)()) + | ^~~~~~~ In file included from rpc/parse_commands.h:43, from command_helpers.h:41: rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48: +In file included from /usr/include/c++/12/bits/refwrap.h:39, + from /usr/include/c++/12/vector:66: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +In file included from command_download.cc:47: +../rak/regex.h:53:27: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 53 | class regex : public std::unary_function { + | ^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/functional:49, + from command_download.cc:39: +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../rak/priority_queue_default.h:113:18: required from here +../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ In file included from rpc/command.h:240, from command_helpers.h:40, - from command_dynamic.cc:45: + from command_ip.cc:46: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); @@ -6563,26 +6487,21 @@ rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/string:48, - from /usr/include/c++/12/bitset:47, - from /usr/include/torrent/utils/log.h:40, - from command_dynamic.cc:40: +In file included from /usr/include/c++/12/string:48: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../rak/priority_queue_default.h:42, from ./globals.h:41, - from core/download.h:47, - from command_events.cc:50: + from ui/download_list.h:41, + from ui/root.h:42, + from command_groups.cc:44: ../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | : public std::iterator { | ^~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_construct.h:61, - from /usr/include/c++/12/bits/alloc_traits.h:33, - from /usr/include/c++/12/ext/alloc_traits.h:34, - from /usr/include/c++/12/unordered_map:41, - from /usr/include/c++/12/functional:61, - from command_events.cc:39: +In file included from /usr/include/c++/12/string:45, + from /usr/include/torrent/download/resource_manager.h:40, + from command_groups.cc:39: /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -6591,18 +6510,6 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -In file included from ../rak/priority_queue_default.h:42, - from core/curl_stack.h:43, - from core/poll_manager.h:40, - from core/manager.h:47, - from command_ui.cc:49: -../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ ../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../rak/priority_queue_default.h:113:18: required from here ../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -6612,32 +6519,14 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -command_groups.cc: In function 'int64_t cg_get_index(const torrent::Object&)': -command_groups.cc:141:111: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = const __cxx11::basic_string&; _Tp = torrent::choke_group]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 141 | rak::equal(arg.as_string(), std::mem_fun(&torrent::choke_group::name))); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1377:5: note: declared here - 1377 | mem_fun(_Ret (_Tp::*__f)() const) - | ^~~~~~~ -command_groups.cc: In function 'torrent::Object apply_cg_insert(const std::string&)': -command_groups.cc:194:48: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = const __cxx11::basic_string&; _Tp = torrent::choke_group]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 194 | rak::equal(arg, std::mem_fun(&torrent::choke_group::name))) != cg_list_hack.end()) - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1377:5: note: declared here - 1377 | mem_fun(_Ret (_Tp::*__f)() const) - | ^~~~~~~ -command_groups.cc: In function 'torrent::Object apply_cg_index_of(const std::string&)': -command_groups.cc:209:88: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = const __cxx11::basic_string&; _Tp = torrent::choke_group]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 209 | std::find_if(cg_list_hack.begin(), cg_list_hack.end(), rak::equal(arg, std::mem_fun(&torrent::choke_group::name))); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1377:5: note: declared here - 1377 | mem_fun(_Ret (_Tp::*__f)() const) - | ^~~~~~~ -../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from rpc/command.h:240, + from rpc/command_map.h:45, + from rpc/parse_commands.h:43, + from command_throttle.cc:48: +rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': +rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] + 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../rak/priority_queue_default.h:113:18: required from here ../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -6647,19 +6536,11 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -In file included from rpc/command.h:240, - from command_helpers.h:40, - from command_tracker.cc:51: -rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': -rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] - 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from rpc/command.h:43: +In file included from rpc/parse.h:42, + from command_throttle.cc:47: /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ -In file included from rpc/parse_commands.h:43, - from command_helpers.h:41: rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { @@ -6668,6 +6549,106 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +In file included from ../rak/priority_queue_default.h:42, + from core/curl_stack.h:43, + from core/poll_manager.h:40, + from core/manager.h:47, + from command_peer.cc:49: +../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/string:45, + from ../rak/path.h:44, + from command_peer.cc:40: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from ../rak/priority_queue_default.h:42, + from ./globals.h:41, + from core/download.h:47, + from command_events.cc:50: +../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_construct.h:61, + from /usr/include/c++/12/bits/alloc_traits.h:33, + from /usr/include/c++/12/ext/alloc_traits.h:34, + from /usr/include/c++/12/unordered_map:41, + from /usr/include/c++/12/functional:61, + from command_events.cc:39: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../rak/priority_queue_default.h:113:18: required from here +../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ +../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../rak/priority_queue_default.h:113:18: required from here +../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ +In file included from ../rak/priority_queue_default.h:42, + from ./globals.h:41, + from core/download.h:47, + from command_local.cc:53: +../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_construct.h:61, + from /usr/include/c++/12/bits/alloc_traits.h:33, + from /usr/include/c++/12/ext/alloc_traits.h:34, + from /usr/include/c++/12/unordered_map:41, + from /usr/include/c++/12/functional:61, + from command_local.cc:40: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from ../rak/priority_queue_default.h:42, + from ./globals.h:41, + from core/download.h:47, + from command_network.cc:54: +../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_construct.h:61, + from /usr/include/c++/12/bits/alloc_traits.h:33, + from /usr/include/c++/12/ext/alloc_traits.h:34, + from /usr/include/c++/12/unordered_map:41, + from /usr/include/c++/12/functional:61, + from command_network.cc:39: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' ../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../rak/priority_queue_default.h:113:18: required from here ../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -6677,26 +6658,6 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -In file included from rpc/command.h:240, - from rpc/command_map.h:45, - from rpc/parse_commands.h:43, - from command_local.cc:58: -rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': -rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] - 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from rpc/command_map.h:43: -/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here - 49 | class LIBTORRENT_EXPORT Object { - | ^~~~~~ -rpc/command_map.h: At global scope: -rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 49 | struct command_map_comp : public std::binary_function { - | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/functional:49: -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ In file included from ../rak/priority_queue_default.h:42, from ./globals.h:41, from core/download.h:47, @@ -6712,22 +6673,6 @@ /usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ -In file included from rpc/scgi.h:41, - from command_network.cc:56: -../rak/functional_fun.h: At global scope: -../rak/functional_fun.h:70:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 70 | class function_base1 : public std::unary_function { - | ^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/functional:49: -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../rak/functional_fun.h:78:36: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 78 | class function_base2 : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ ../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': ../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); @@ -6742,46 +6687,19 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -In file included from rpc/scgi.h:41, - from command_local.cc:59: -../rak/functional_fun.h:70:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] - 70 | class function_base1 : public std::unary_function { - | ^~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ -../rak/functional_fun.h:78:36: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 78 | class function_base2 : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -command_tracker.cc: In function 'torrent::Object apply_enable_trackers(int64_t)': -command_tracker.cc:103:37: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::Tracker]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 103 | arg ? std::mem_fun(&torrent::Tracker::enable) : std::mem_fun(&torrent::Tracker::disable)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1371:5: note: declared here - 1371 | mem_fun(_Ret (_Tp::*__f)()) - | ^~~~~~~ -command_tracker.cc:103:79: warning: 'std::mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)()) [with _Ret = void; _Tp = torrent::Tracker]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] - 103 | arg ? std::mem_fun(&torrent::Tracker::enable) : std::mem_fun(&torrent::Tracker::disable)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1371:5: note: declared here - 1371 | mem_fun(_Ret (_Tp::*__f)()) - | ^~~~~~~ In file included from rpc/command.h:240, - from rpc/command_map.h:45, - from rpc/parse_commands.h:43, - from command_throttle.cc:48: + from command_helpers.h:40, + from command_peer.cc:54: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from rpc/parse.h:42, - from command_throttle.cc:47: +In file included from rpc/command.h:43: /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ +In file included from rpc/parse_commands.h:43, + from command_helpers.h:41: rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { @@ -6791,18 +6709,18 @@ 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from rpc/command.h:240, - from command_helpers.h:40, - from command_peer.cc:54: + from rpc/command_map.h:45, + from rpc/parse_commands.h:43, + from command_groups.cc:46: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from rpc/command.h:43: +In file included from rpc/parse.h:42, + from command_groups.cc:45: /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ -In file included from rpc/parse_commands.h:43, - from command_helpers.h:41: rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { @@ -6811,6 +6729,7 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o command_ui.o command_ui.cc ../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../rak/priority_queue_default.h:113:18: required from here ../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -6820,65 +6739,13 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -command_local.cc: In function 'void file_print_list(torrent::Object::list_const_iterator, torrent::Object::list_const_iterator, FILE*, int)': -command_local.cc:198:44: warning: format '%lli' expects argument of type 'long long int', but argument 3 has type 'long int' [-Wformat=] - 198 | fprintf(output, (const char*)" %lli" + !(flags & file_print_use_space), first->as_value()); - | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~ - | | - | long int -command_local.cc:198:41: warning: format '%lli' expects argument of type 'long long int', but argument 3 has type 'long int' [-Wformat=] - 198 | fprintf(output, (const char*)" %lli" + !(flags & file_print_use_space), first->as_value()); - | ~~~^ ~~~~~~~~~~~~~~~~~ - | | | - | long long int long int - | %li -In file included from rpc/command.h:240, - from rpc/command_map.h:45, - from rpc/parse_commands.h:43, - from command_network.cc:59: -rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': -rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] - 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from rpc/parse.h:42, - from command_network.cc:58: -/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here - 49 | class LIBTORRENT_EXPORT Object { - | ^~~~~~ -rpc/command_map.h: At global scope: -rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 49 | struct command_map_comp : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -In file included from rpc/command.h:240, - from command_helpers.h:40, - from command_download.cc:70: -rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': -rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] - 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from rpc/parse.h:42, - from command_download.cc:66: -/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here - 49 | class LIBTORRENT_EXPORT Object { - | ^~~~~~ -In file included from rpc/parse_commands.h:43, - from command_helpers.h:41: -rpc/command_map.h: At global scope: -rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 49 | struct command_map_comp : public std::binary_function { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -In file included from rpc/command_scheduler.h:43, - from main.cc:71: +In file included from rpc/scgi.h:41, + from command_network.cc:56: ../rak/functional_fun.h: At global scope: ../rak/functional_fun.h:70:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 70 | class function_base1 : public std::unary_function { | ^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/functional:49: /usr/include/c++/12/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ @@ -6898,17 +6765,19 @@ 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from rpc/command.h:240, - from rpc/command_map.h:45, - from rpc/parse_commands.h:43, - from main.cc:73: + from command_helpers.h:40, + from command_download.cc:70: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from core/dht_manager.h:42: +In file included from rpc/parse.h:42, + from command_download.cc:66: /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ +In file included from rpc/parse_commands.h:43, + from command_helpers.h:41: rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { @@ -6916,14 +6785,26 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../rak/priority_queue_default.h:113:18: required from here -../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) +command_groups.cc: In function 'int64_t cg_get_index(const torrent::Object&)': +command_groups.cc:141:111: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = const __cxx11::basic_string&; _Tp = torrent::choke_group]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 141 | rak::equal(arg.as_string(), std::mem_fun(&torrent::choke_group::name))); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1377:5: note: declared here + 1377 | mem_fun(_Ret (_Tp::*__f)() const) + | ^~~~~~~ +command_groups.cc: In function 'torrent::Object apply_cg_insert(const std::string&)': +command_groups.cc:194:48: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = const __cxx11::basic_string&; _Tp = torrent::choke_group]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 194 | rak::equal(arg, std::mem_fun(&torrent::choke_group::name))) != cg_list_hack.end()) + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1377:5: note: declared here + 1377 | mem_fun(_Ret (_Tp::*__f)() const) + | ^~~~~~~ +command_groups.cc: In function 'torrent::Object apply_cg_index_of(const std::string&)': +command_groups.cc:209:88: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = const __cxx11::basic_string&; _Tp = torrent::choke_group]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] + 209 | std::find_if(cg_list_hack.begin(), cg_list_hack.end(), rak::equal(arg, std::mem_fun(&torrent::choke_group::name))); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1377:5: note: declared here + 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ In file included from rpc/command_scheduler.h:43, from command_events.cc:54: @@ -6942,41 +6823,19 @@ 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from rpc/command.h:240, - from command_helpers.h:40, - from command_ui.cc:57: + from rpc/command_map.h:45, + from rpc/parse_commands.h:43, + from command_events.cc:56: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from core/view.h:55, from core/view_manager.h:43, - from command_ui.cc:50: + from command_events.cc:53: /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ -command_download.cc: In function 'torrent::Object d_list_push_back_unique(core::Download*, const torrent::Object&, const char*, const char*)': -command_download.cc:597:45: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = const torrent::Object&; _Arg2 = const torrent::Object&; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] - 597 | rak::bind1st(std::ptr_fun(&torrent::object_equal), args)) == list.end()) - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1153:5: note: declared here - 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) - | ^~~~~~~ -command_download.cc: In function 'torrent::Object d_list_has(core::Download*, const torrent::Object&, const char*, const char*)': -command_download.cc:609:58: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = const torrent::Object&; _Arg2 = const torrent::Object&; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] - 609 | rak::bind1st(std::ptr_fun(&torrent::object_equal), args)) != list.end()); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1153:5: note: declared here - 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) - | ^~~~~~~ -command_download.cc: In function 'torrent::Object d_list_remove(core::Download*, const torrent::Object&, const char*, const char*)': -command_download.cc:617:80: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = const torrent::Object&; _Arg2 = const torrent::Object&; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] - 617 | list.erase(std::remove_if(list.begin(), list.end(), rak::bind1st(std::ptr_fun(&torrent::object_equal), args)), list.end()); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/12/bits/stl_function.h:1153:5: note: declared here - 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) - | ^~~~~~~ -In file included from rpc/parse_commands.h:43, - from command_helpers.h:41: rpc/command_map.h: At global scope: rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { @@ -6987,14 +6846,13 @@ In file included from rpc/command.h:240, from rpc/command_map.h:45, from rpc/parse_commands.h:43, - from command_events.cc:56: + from command_network.cc:59: rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from core/view.h:55, - from core/view_manager.h:43, - from command_events.cc:53: +In file included from rpc/parse.h:42, + from command_network.cc:58: /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ @@ -7005,24 +6863,26 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../rak/priority_queue_default.h:113:18: required from here -../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) +command_download.cc: In function 'torrent::Object d_list_push_back_unique(core::Download*, const torrent::Object&, const char*, const char*)': +command_download.cc:597:45: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = const torrent::Object&; _Arg2 = const torrent::Object&; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] + 597 | rak::bind1st(std::ptr_fun(&torrent::object_equal), args)) == list.end()) + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1153:5: note: declared here + 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) | ^~~~~~~ -g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o control.o control.cc -../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../rak/priority_queue_default.h:113:18: required from here -../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) +command_download.cc: In function 'torrent::Object d_list_has(core::Download*, const torrent::Object&, const char*, const char*)': +command_download.cc:609:58: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = const torrent::Object&; _Arg2 = const torrent::Object&; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] + 609 | rak::bind1st(std::ptr_fun(&torrent::object_equal), args)) != list.end()); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1153:5: note: declared here + 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) + | ^~~~~~~ +command_download.cc: In function 'torrent::Object d_list_remove(core::Download*, const torrent::Object&, const char*, const char*)': +command_download.cc:617:80: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = const torrent::Object&; _Arg2 = const torrent::Object&; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] + 617 | list.erase(std::remove_if(list.begin(), list.end(), rak::bind1st(std::ptr_fun(&torrent::object_equal), args)), list.end()); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:1153:5: note: declared here + 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) | ^~~~~~~ command_events.cc: In function 'torrent::Object apply_close_low_diskspace(int64_t)': command_events.cc:225:68: warning: 'std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = core::Download]' is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] @@ -7049,6 +6909,26 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +In file included from rpc/command.h:240, + from rpc/command_map.h:45, + from rpc/parse_commands.h:43, + from command_local.cc:58: +rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': +rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] + 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from rpc/command_map.h:43: +/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here + 49 | class LIBTORRENT_EXPORT Object { + | ^~~~~~ +rpc/command_map.h: At global scope: +rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 49 | struct command_map_comp : public std::binary_function { + | ^~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/functional:49: +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ ../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../rak/priority_queue_default.h:113:18: required from here ../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -7058,6 +6938,32 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +In file included from rpc/scgi.h:41, + from command_local.cc:59: +../rak/functional_fun.h:70:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 70 | class function_base1 : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../rak/functional_fun.h:78:36: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 78 | class function_base2 : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +command_local.cc: In function 'void file_print_list(torrent::Object::list_const_iterator, torrent::Object::list_const_iterator, FILE*, int)': +command_local.cc:198:44: warning: format '%lli' expects argument of type 'long long int', but argument 3 has type 'long int' [-Wformat=] + 198 | fprintf(output, (const char*)" %lli" + !(flags & file_print_use_space), first->as_value()); + | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~ + | | + | long int +command_local.cc:198:41: warning: format '%lli' expects argument of type 'long long int', but argument 3 has type 'long int' [-Wformat=] + 198 | fprintf(output, (const char*)" %lli" + !(flags & file_print_use_space), first->as_value()); + | ~~~^ ~~~~~~~~~~~~~~~~~ + | | | + | long long int long int + | %li ../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../rak/priority_queue_default.h:113:18: required from here ../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -7076,15 +6982,145 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../rak/priority_queue_default.h:113:18: required from here -../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ +g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o control.o control.cc +In file included from command_ui.cc:44: +../rak/algorithm.h:118:35: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 118 | struct compare_base : public std::binary_function<_Value, _Value, bool> { + | ^~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/string:48, + from /usr/include/c++/12/bitset:47, + from /usr/include/c++/12/regex:38, + from command_ui.cc:42: +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +In file included from command_ui.cc:45: +../rak/functional.h:174:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 174 | struct less2_t : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +../rak/functional.h:213:33: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 213 | struct greater2_t : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +../rak/functional.h:273:29: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 273 | struct invert : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../rak/functional.h:279:27: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 279 | struct on_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../rak/functional.h:299:28: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 299 | struct on2_t : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +../rak/functional.h:320:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 320 | struct mem_ptr_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../rak/functional.h:341:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 341 | struct mem_ref_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../rak/functional.h:352:38: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 352 | struct const_mem_ref_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../rak/functional.h:395:34: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 395 | struct call_delete : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../rak/functional.h:408:31: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 408 | class bind1st_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../rak/functional.h:433:31: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 433 | class bind2nd_t : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../rak/functional.h:551:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 551 | class mem_fun2 : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +In file included from command_ui.cc:46: +../rak/functional_fun.h:70:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] + 70 | class function_base1 : public std::unary_function { + | ^~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +../rak/functional_fun.h:78:36: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 78 | class function_base2 : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +In file included from ../rak/priority_queue_default.h:42, + from core/curl_stack.h:43, + from core/poll_manager.h:40, + from core/manager.h:47, + from command_ui.cc:49: +../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/string:45: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o globals.o globals.cc +In file included from rpc/command.h:240, + from command_helpers.h:40, + from command_ui.cc:57: +rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': +rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] + 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from core/view.h:55, + from core/view_manager.h:43, + from command_ui.cc:50: +/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here + 49 | class LIBTORRENT_EXPORT Object { + | ^~~~~~ +In file included from rpc/parse_commands.h:43, + from command_helpers.h:41: +rpc/command_map.h: At global scope: +rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 49 | struct command_map_comp : public std::binary_function { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o option_parser.o option_parser.cc In file included from ../rak/priority_queue_default.h:42, from core/curl_stack.h:43, from core/poll_manager.h:40, @@ -7105,7 +7141,7 @@ 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o globals.o globals.cc +g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o signal_handler.o signal_handler.cc In file included from display/window.h:41, from control.cc:51: ../rak/functional.h: At global scope: @@ -7183,7 +7219,31 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o option_parser.o option_parser.cc +../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../rak/priority_queue_default.h:113:18: required from here +../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ +In file included from ../rak/priority_queue_default.h:42, + from globals.h:41, + from globals.cc:39: +../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_construct.h:61, + from /usr/include/c++/12/bits/alloc_traits.h:33, + from /usr/include/c++/12/ext/alloc_traits.h:34, + from /usr/include/c++/12/unordered_map:41, + from /usr/include/c++/12/functional:61, + from ../rak/priority_queue_default.h:40: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o thread_base.o thread_base.cc In file included from rpc/command_scheduler.h:43, from control.cc:55: ../rak/functional_fun.h:70:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] @@ -7219,27 +7279,7 @@ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -In file included from ../rak/priority_queue_default.h:42, - from globals.h:41, - from globals.cc:39: -../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_construct.h:61, - from /usr/include/c++/12/bits/alloc_traits.h:33, - from /usr/include/c++/12/ext/alloc_traits.h:34, - from /usr/include/c++/12/unordered_map:41, - from /usr/include/c++/12/functional:61, - from ../rak/priority_queue_default.h:40: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o signal_handler.o signal_handler.cc -../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o thread_worker.o thread_worker.cc ../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': ../rak/priority_queue_default.h:113:18: required from here ../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] @@ -7249,18 +7289,11 @@ /usr/include/c++/12/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../rak/priority_queue_default.h:113:18: required from here -../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438, - from /usr/include/c++/12/functional:49: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o thread_base.o thread_base.cc -g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o thread_worker.o thread_worker.cc +../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' option_parser.cc: In static member function 'static bool OptionParser::has_flag(char, int, char**)': option_parser.cc:91:77: warning: 'std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = const char*; _Arg2 = const char*; _Result = int]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 91 | return std::find_if(argv, argv + argc, std::not1(std::bind1st(std::ptr_fun(&std::strcmp), options))) != argv + argc; @@ -7283,6 +7316,16 @@ /usr/include/c++/12/bits/stl_function.h:1046:5: note: declared here 1046 | not1(const _Predicate& __pred) | ^~~~ +../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../rak/priority_queue_default.h:113:18: required from here +../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438, + from /usr/include/c++/12/functional:49: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ In file included from ../rak/priority_queue_default.h:42, from thread_base.h:44, from thread_base.cc:39: @@ -7390,7 +7433,7 @@ ar cru libsub_root.a command_download.o command_dynamic.o command_events.o command_file.o command_ip.o command_helpers.o command_groups.o command_local.o command_logging.o command_network.o command_peer.o command_throttle.o command_tracker.o command_scheduler.o command_ui.o control.o globals.o option_parser.o signal_handler.o thread_base.o thread_worker.o ar: `u' modifier ignored since `D' is the default (see `U') ranlib libsub_root.a -/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -Wl,-z,relro -o rtorrent main.o libsub_root.a ui/libsub_ui.a core/libsub_core.a display/libsub_display.a input/libsub_input.a rpc/libsub_rpc.a utils/libsub_utils.a -lncursesw -ltinfo -lcppunit -lcurl -ltorrent -L/usr/lib/x86_64-linux-gnu -lxmlrpc_server -lxmlrpc -lxmlrpc_xmlparse -lxmlrpc_xmltok -lxmlrpc_util +/bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -Wl,-z,relro -o rtorrent main.o libsub_root.a ui/libsub_ui.a core/libsub_core.a display/libsub_display.a input/libsub_input.a rpc/libsub_rpc.a utils/libsub_utils.a -lncursesw -ltinfo -lcppunit -lcurl -ltorrent -L/usr/lib/x86_64-linux-gnu -lxmlrpc_server -lxmlrpc -lxmlrpc_xmlparse -lxmlrpc_xmltok -lxmlrpc_util libtool: link: g++ -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -Wl,-z -Wl,relro -o rtorrent main.o libsub_root.a ui/libsub_ui.a core/libsub_core.a display/libsub_display.a input/libsub_input.a rpc/libsub_rpc.a utils/libsub_utils.a -lncursesw -ltinfo -lcppunit -lcurl -ltorrent -L/usr/lib/x86_64-linux-gnu -lxmlrpc_server -lxmlrpc -lxmlrpc_xmlparse -lxmlrpc_xmltok -lxmlrpc_util make[4]: Leaving directory '/build/rtorrent-0.9.8/src' make[3]: Leaving directory '/build/rtorrent-0.9.8/src' @@ -7403,7 +7446,7 @@ make[2]: Leaving directory '/build/rtorrent-0.9.8' make[1]: Leaving directory '/build/rtorrent-0.9.8' dh_auto_test - make -j16 check "TESTSUITEFLAGS=-j16 --verbose" VERBOSE=1 + make -j15 check "TESTSUITEFLAGS=-j15 --verbose" VERBOSE=1 make[1]: Entering directory '/build/rtorrent-0.9.8' Making check in doc make[2]: Entering directory '/build/rtorrent-0.9.8/doc' @@ -7450,35 +7493,26 @@ g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o rpc/rtorrentTest-object_storage_test.o `test -f 'rpc/object_storage_test.cc' || echo './'`rpc/object_storage_test.cc g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -c -o src/rtorrentTest-command_dynamic_test.o `test -f 'src/command_dynamic_test.cc' || echo './'`src/command_dynamic_test.cc In file included from ../src/rpc/command.h:240, - from ../src/command_helpers.h:40, - from rpc/command_map_test.cc:3: + from ../src/rpc/object_storage.h:49, + from rpc/object_storage_test.h:3, + from rpc/object_storage_test.cc:3: ../src/rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ../src/rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from ../src/rpc/command.h:43: +In file included from ../src/rpc/object_storage.h:46: /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ -In file included from ../src/rpc/parse_commands.h:43, - from ../src/command_helpers.h:41: -../src/rpc/command_map.h: At global scope: -../src/rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] - 49 | struct command_map_comp : public std::binary_function { - | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/functional:49, - from ../src/rpc/command.h:40: -/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ In file included from ../src/rpc/command.h:240, from ../src/rpc/command_map.h:45, - from rpc/command_slot_test.cc:5: + from ../src/rpc/parse_commands.h:43, + from src/command_dynamic_test.cc:7: ../src/rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ../src/rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from rpc/command_slot_test.cc:4: +In file included from ../src/rpc/command_map.h:43: /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ @@ -7490,15 +7524,15 @@ from /usr/include/c++/12/bits/locale_classes.h:40, from /usr/include/c++/12/bits/ios_base.h:41, from /usr/include/c++/12/ios:42, - from /usr/include/c++/12/istream:38, - from /usr/include/c++/12/sstream:38, - from rpc/command_slot_test.cc:3: + from /usr/include/c++/12/ostream:38, + from /usr/include/c++/12/iostream:39, + from src/command_dynamic_test.cc:3: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../src/rpc/command.h:240, - from rpc/command_test.h:3, - from rpc/command_test.cc:3: + from ../src/command_helpers.h:40, + from rpc/command_map_test.cc:3: ../src/rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ../src/rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); @@ -7507,15 +7541,49 @@ /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ +In file included from ../rak/priority_queue_default.h:42, + from ../src/control.h:43, + from src/command_dynamic_test.cc:8: +../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/12/string:45: +/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': +../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] + 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from ../src/rpc/parse_commands.h:43, + from ../src/command_helpers.h:41: +../src/rpc/command_map.h: At global scope: +../src/rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] + 49 | struct command_map_comp : public std::binary_function { + | ^~~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/functional:49, + from ../src/rpc/command.h:40: +/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': +../rak/priority_queue_default.h:113:18: required from here +../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/12/bits/stl_function.h:1438: +/usr/include/c++/12/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ In file included from ../src/rpc/command.h:240, - from ../src/rpc/command_map.h:45, - from ../src/rpc/parse_commands.h:43, - from src/command_dynamic_test.cc:7: + from rpc/command_test.h:3, + from rpc/command_test.cc:3: ../src/rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': ../src/rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from ../src/rpc/command_map.h:43: +In file included from ../src/rpc/command.h:43: /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ @@ -7533,6 +7601,17 @@ /usr/include/c++/12/bits/stl_function.h:1389:5: note: declared here 1389 | mem_fun_ref(_Ret (_Tp::*__f)() const) | ^~~~~~~~~~~ +In file included from ../src/rpc/command.h:240, + from ../src/rpc/command_map.h:45, + from rpc/command_slot_test.cc:5: +../src/rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': +../src/rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] + 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); + | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from rpc/command_slot_test.cc:4: +/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here + 49 | class LIBTORRENT_EXPORT Object { + | ^~~~~~ ../src/rpc/command_map.h: At global scope: ../src/rpc/command_map.h:49:39: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 49 | struct command_map_comp : public std::binary_function { @@ -7541,49 +7620,13 @@ from /usr/include/c++/12/bits/locale_classes.h:40, from /usr/include/c++/12/bits/ios_base.h:41, from /usr/include/c++/12/ios:42, - from /usr/include/c++/12/ostream:38, - from /usr/include/c++/12/iostream:39, - from src/command_dynamic_test.cc:3: + from /usr/include/c++/12/istream:38, + from /usr/include/c++/12/sstream:38, + from rpc/command_slot_test.cc:3: /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -In file included from ../rak/priority_queue_default.h:42, - from ../src/control.h:43, - from src/command_dynamic_test.cc:8: -../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] - 117 | : public std::iterator { - | ^~~~~~~~ -In file included from /usr/include/c++/12/string:45: -/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -../rak/priority_queue_default.h: In destructor 'rak::priority_item::~priority_item()': -../rak/priority_queue_default.h:56:7: warning: 'throw' will always call 'terminate' [-Wterminate] - 56 | throw torrent::internal_error("priority_item::~priority_item() called on a queued item."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' -../rak/priority_queue.h: In instantiation of 'rak::priority_queue::iterator rak::priority_queue::find(const Key&) [with Key = rak::priority_item*; Value = rak::priority_item*; Compare = rak::priority_compare; Equal = std::equal_to; Alloc = rak::cacheline_allocator; iterator = std::vector >::iterator]': -../rak/priority_queue_default.h:113:18: required from here -../rak/priority_queue.h:84:53: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to; _Tp = rak::priority_item*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/12/bits/stl_function.h:1438: -/usr/include/c++/12/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -In file included from ../src/rpc/command.h:240, - from ../src/rpc/object_storage.h:49, - from rpc/object_storage_test.h:3, - from rpc/object_storage_test.cc:3: -../src/rpc/command_impl.h: In static member function 'static void rpc::command_base::pop_stack(stack_type*, torrent::Object*)': -../src/rpc/command_impl.h:105:16: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class torrent::Object' with no trivial copy-assignment [-Wclass-memaccess] - 105 | std::memset(last_stack, 0xAA, sizeof(torrent::Object)); - | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from ../src/rpc/object_storage.h:46: -/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here - 49 | class LIBTORRENT_EXPORT Object { - | ^~~~~~ -/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -lcppunit -ldl -Wl,-z,relro -o rtorrentTest rpc/rtorrentTest-command_test.o rpc/rtorrentTest-command_map_test.o rpc/rtorrentTest-command_slot_test.o rpc/rtorrentTest-object_storage_test.o src/rtorrentTest-command_dynamic_test.o rtorrentTest-main.o ../src/libsub_root.a ../src/ui/libsub_ui.a ../src/core/libsub_core.a ../src/display/libsub_display.a ../src/input/libsub_input.a ../src/rpc/libsub_rpc.a ../src/utils/libsub_utils.a -lncursesw -ltinfo -lcppunit -lcurl -ltorrent -L/usr/lib/x86_64-linux-gnu -lxmlrpc_server -lxmlrpc -lxmlrpc_xmlparse -lxmlrpc_xmltok -lxmlrpc_util +/bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -lcppunit -ldl -Wl,-z,relro -o rtorrentTest rpc/rtorrentTest-command_test.o rpc/rtorrentTest-command_map_test.o rpc/rtorrentTest-command_slot_test.o rpc/rtorrentTest-object_storage_test.o src/rtorrentTest-command_dynamic_test.o rtorrentTest-main.o ../src/libsub_root.a ../src/ui/libsub_ui.a ../src/core/libsub_core.a ../src/display/libsub_display.a ../src/input/libsub_input.a ../src/rpc/libsub_rpc.a ../src/utils/libsub_utils.a -lncursesw -ltinfo -lcppunit -lcurl -ltorrent -L/usr/lib/x86_64-linux-gnu -lxmlrpc_server -lxmlrpc -lxmlrpc_xmlparse -lxmlrpc_xmltok -lxmlrpc_util libtool: link: g++ -g -O2 -ffile-prefix-map=/build/rtorrent-0.9.8=. -fstack-protector-strong -Wformat -Werror=format-security -g -DDEBUG -Wall -I/usr/include -I/usr/include/x86_64-linux-gnu -Wl,-z -Wl,relro -o rtorrentTest rpc/rtorrentTest-command_test.o rpc/rtorrentTest-command_map_test.o rpc/rtorrentTest-command_slot_test.o rpc/rtorrentTest-object_storage_test.o src/rtorrentTest-command_dynamic_test.o rtorrentTest-main.o -ldl ../src/libsub_root.a ../src/ui/libsub_ui.a ../src/core/libsub_core.a ../src/display/libsub_display.a ../src/input/libsub_input.a ../src/rpc/libsub_rpc.a ../src/utils/libsub_utils.a -lncursesw -ltinfo -lcppunit -lcurl -ltorrent -L/usr/lib/x86_64-linux-gnu -lxmlrpc_server -lxmlrpc -lxmlrpc_xmlparse -lxmlrpc_xmltok -lxmlrpc_util make[3]: Leaving directory '/build/rtorrent-0.9.8/test' make check-TESTS @@ -7665,8 +7708,8 @@ make[3]: Leaving directory '/build/rtorrent-0.9.8/src/utils' make[3]: Entering directory '/build/rtorrent-0.9.8/src' make[4]: Entering directory '/build/rtorrent-0.9.8/src' - /bin/mkdir -p '/build/rtorrent-0.9.8/debian/rtorrent/usr/bin' - /bin/bash ../libtool --mode=install /usr/bin/install -c rtorrent '/build/rtorrent-0.9.8/debian/rtorrent/usr/bin' + /usr/bin/mkdir -p '/build/rtorrent-0.9.8/debian/rtorrent/usr/bin' + /bin/sh ../libtool --mode=install /usr/bin/install -c rtorrent '/build/rtorrent-0.9.8/debian/rtorrent/usr/bin' libtool: install: /usr/bin/install -c rtorrent /build/rtorrent-0.9.8/debian/rtorrent/usr/bin/rtorrent make[4]: Nothing to be done for 'install-data-am'. make[4]: Leaving directory '/build/rtorrent-0.9.8/src' @@ -7703,8 +7746,8 @@ dh_gencontrol dh_md5sums dh_builddeb -dpkg-deb: building package 'rtorrent-dbgsym' in '../rtorrent-dbgsym_0.9.8-1_amd64.deb'. dpkg-deb: building package 'rtorrent' in '../rtorrent_0.9.8-1_amd64.deb'. +dpkg-deb: building package 'rtorrent-dbgsym' in '../rtorrent-dbgsym_0.9.8-1_amd64.deb'. dpkg-genbuildinfo --build=binary -O../rtorrent_0.9.8-1_amd64.buildinfo dpkg-genchanges --build=binary -O../rtorrent_0.9.8-1_amd64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -7712,12 +7755,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: including full source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/122432/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/122432/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/3108024 and its subdirectories -I: Current time: Thu May 23 15:20:32 -12 2024 -I: pbuilder-time-stamp: 1716520832 +I: removing directory /srv/workspace/pbuilder/122432 and its subdirectories +I: Current time: Sat Apr 22 11:01:21 +14 2023 +I: pbuilder-time-stamp: 1682110881