Diff of the two buildlogs: -- --- b1/build.log 2024-04-30 19:29:08.231133713 +0000 +++ b2/build.log 2024-04-30 19:33:37.815619452 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Mon Jun 2 13:50:26 -12 2025 -I: pbuilder-time-stamp: 1748915426 +I: Current time: Wed May 1 09:29:11 +14 2024 +I: pbuilder-time-stamp: 1714505351 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -26,52 +26,84 @@ 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/1204771/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/3231031/tmp/hooks/D01_modify_environment starting +debug: Running on codethink02-arm64. +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 30 19:29 /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/3231031/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/3231031/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - DEBIAN_FRONTEND='noninteractive' + 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]="21" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.2.21(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - INVOCATION_ID='8e9454e906ac4dba950efc3af3943c17' - 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='1204771' - PS1='# ' - PS2='> ' + INVOCATION_ID=28104e0a43c04322994d547f7f2fc402 + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-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=3231031 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.lj0HiVJQ/pbuilderrc_1NIV --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.lj0HiVJQ/b1 --logfile b1/build.log rtorrent_0.9.8-1.dsc' - SUDO_GID='109' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.4: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.lj0HiVJQ/pbuilderrc_AK6M --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.lj0HiVJQ/b2 --logfile b2/build.log rtorrent_0.9.8-1.dsc' + SUDO_GID=109 + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://192.168.101.4:3128 I: uname -a - Linux codethink03-arm64 6.1.0-20-cloud-arm64 #1 SMP Debian 6.1.85-1 (2024-04-11) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-20-cloud-arm64 #1 SMP Debian 6.1.85-1 (2024-04-11) aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 May 24 13:38 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/1204771/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Apr 21 07:15 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/3231031/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -213,7 +245,7 @@ Get: 55 http://deb.debian.org/debian trixie/main arm64 libtorrent-dev arm64 0.13.8-2+b1 [67.4 kB] Get: 56 http://deb.debian.org/debian trixie/main arm64 libxmlrpc-core-c3 arm64 1.33.14-11 [140 kB] Get: 57 http://deb.debian.org/debian trixie/main arm64 libxmlrpc-core-c3-dev arm64 1.33.14-11 [213 kB] -Fetched 25.1 MB in 0s (54.1 MB/s) +Fetched 25.1 MB in 0s (96.5 MB/s) debconf: delaying package configuration, since apt-utils is not installed dpkg: libssl3:arm64: dependency problems, but removing anyway as you requested: libkrb5-3:arm64 depends on libssl3 (>= 3.0.0). @@ -467,7 +499,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/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/3231031/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/3231031/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/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 @@ -791,13 +827,13 @@ g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o manager.o manager.cc g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o view.o view.cc -In file included from download.cc:41: +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++/13/string:49, - from ../../rak/file_stat.h:40, - from download.cc:40: + from /usr/include/torrent/exceptions.h:47, + from curl_stack.cc:41: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -868,15 +904,14 @@ 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../../rak/priority_queue_default.h:42, - from ./../globals.h:41, - from poll_manager.cc:46: + 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++/13/bits/stl_iterator_base_funcs.h:66, - from /usr/include/c++/13/string:47, - from /usr/include/c++/13/stdexcept:39, - from poll_manager.cc:39: +In file included from /usr/include/c++/13/bits/stl_algobase.h:65, + from /usr/include/c++/13/algorithm:60, + from curl_stack.cc:39: /usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -907,20 +942,92 @@ 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 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++/13/string:49, + from ../../rak/file_stat.h:40, + from download.cc:40: +/usr/include/c++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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: + 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++/13/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13/string:47, - from /usr/include/c++/13/bits/locale_classes.h:40, - from /usr/include/c++/13/bits/ios_base.h:41, - from /usr/include/c++/13/ios:44, - from /usr/include/c++/13/ostream:40, - from /usr/include/c++/13/iostream:41, - from curl_get.cc:39: + from /usr/include/c++/13/stdexcept:39, + from poll_manager.cc:39: /usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -929,13 +1036,12 @@ 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 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++/13/bits/unique_ptr.h:37, - from /usr/include/c++/13/memory:78, - from http_queue.cc:39: +In file included from /usr/include/c++/13/functional:49, + from view.cc:40: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -1005,22 +1111,76 @@ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +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++/13/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))); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ +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 { + | ^~~~~~~~ +/usr/include/c++/13/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()) { + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/c++/13/bits/stl_iterator_base_funcs.h:66, + from /usr/include/c++/13/string:47, + from /usr/include/c++/13/bits/locale_classes.h:40, + from /usr/include/c++/13/bits/ios_base.h:41, + from /usr/include/c++/13/ios:44, + from /usr/include/c++/13/ostream:40, + from /usr/include/c++/13/iostream:41, + from curl_get.cc:39: +/usr/include/c++/13/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."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/13/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++/13/bits/stl_function.h:1046:5: note: declared here + 1046 | not1(const _Predicate& __pred) + | ^~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' 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 download_list.cc:42: +../../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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ +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++/13/string:49, - from /usr/include/c++/13/bits/locale_classes.h:40, - from /usr/include/c++/13/bits/ios_base.h:41, - from /usr/include/c++/13/ios:44, - from /usr/include/c++/13/istream:40, - from /usr/include/c++/13/fstream:40, - from download_list.cc:40: +In file included from /usr/include/c++/13/bits/unique_ptr.h:37, + from /usr/include/c++/13/memory:78, + from http_queue.cc:39: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -1100,6 +1260,19 @@ /usr/include/c++/13/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ +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++/13/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++/13/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 http_queue.cc:45: @@ -1112,11 +1285,16 @@ /usr/include/c++/13/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++/13/bits/stl_function.h:1438, + from /usr/include/c++/13/string:49: +/usr/include/c++/13/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ 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] @@ -1132,31 +1310,39 @@ /usr/include/aarch64-linux-gnu/curl/curl.h:2879:3: note: declared here 2879 | CURLINFO_CONTENT_LENGTH_DOWNLOAD | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../../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)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ 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()); | ^~~~~~~~ +In file included from /usr/include/c++/13/bits/stl_function.h:1438, + from /usr/include/c++/13/string:49: +/usr/include/c++/13/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ /usr/include/c++/13/bits/unique_ptr.h:65:28: note: declared here 65 | template class auto_ptr; | ^~~~~~~~ -In file included from ./../rpc/command.h:240, - from ./../rpc/command_map.h:45, - from ./../rpc/parse_commands.h:43, - 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 ./../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 view.cc:41: +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 { | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/13/functional:49, - from view.cc:40: +In file included from /usr/include/c++/13/string:49, + from /usr/include/c++/13/bits/locale_classes.h:40, + from /usr/include/c++/13/bits/ios_base.h:41, + from /usr/include/c++/13/ios:44, + from /usr/include/c++/13/istream:40, + from /usr/include/c++/13/fstream:40, + from download_list.cc:40: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -1220,23 +1406,6 @@ /usr/include/c++/13/bits/stl_function.h:117:12: note: declared here 117 | struct unary_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 { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/13/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++/13/bits/stl_function.h:1438, - from /usr/include/c++/13/string:49: -/usr/include/c++/13/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ ../../rak/functional.h:551:30: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 551 | class mem_fun2 : public std::binary_function { | ^~~~~~~~~~~~~~~ @@ -1248,28 +1417,26 @@ ../../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++/13/bits/stl_function.h:1438, - from /usr/include/c++/13/string:49: +In file included from /usr/include/c++/13/bits/stl_function.h:1438: /usr/include/c++/13/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 ./../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++/13/bits/stl_algobase.h:65, - from /usr/include/c++/13/list:62, - from download.cc:39: -/usr/include/c++/13/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 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 { + | ^~~~~~ +./../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 manager.cc:47: ../../rak/regex.h:53:27: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 53 | class regex : public std::unary_function { @@ -1280,28 +1447,29 @@ from /usr/include/c++/13/ios:44, from /usr/include/c++/13/istream:40, from /usr/include/c++/13/fstream:40, + from download_factory.cc:40: +/usr/include/c++/13/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +In file included from /usr/include/c++/13/string:49, + from /usr/include/c++/13/bits/locale_classes.h:40, + from /usr/include/c++/13/bits/ios_base.h:41, + from /usr/include/c++/13/ios:44, + from /usr/include/c++/13/istream:40, + from /usr/include/c++/13/fstream:40, from manager.cc:41: /usr/include/c++/13/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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/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 { | ^~~~~~ @@ -1309,16 +1477,26 @@ ./../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++/13/string:49, - from /usr/include/c++/13/bits/locale_classes.h:40, - from /usr/include/c++/13/bits/ios_base.h:41, - from /usr/include/c++/13/ios:44, - from /usr/include/c++/13/istream:40, - from /usr/include/c++/13/fstream:40, - from download_factory.cc:40: /usr/include/c++/13/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 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++/13/bits/stl_algobase.h:65, + from /usr/include/c++/13/list:62, + from download.cc:39: +/usr/include/c++/13/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, @@ -1331,6 +1509,17 @@ /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 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++/13/bits/stl_iterator_base_funcs.h:66, + from /usr/include/c++/13/string:47: +/usr/include/c++/13/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 { @@ -1345,39 +1534,14 @@ /usr/include/c++/13/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++/13/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++/13/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 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++/13/bits/stl_iterator_base_funcs.h:66, - from /usr/include/c++/13/string:47: -/usr/include/c++/13/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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o view_manager.o view_manager.cc In file included from ../../rak/priority_queue_default.h:42, - from curl_get.h:45, - from download_factory.cc:55: + 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 { | ^~~~~~~~ @@ -1391,6 +1555,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' +g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o view_manager.o view_manager.cc +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++/13/bits/stl_function.h:1153:5: note: declared here + 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) + | ^~~~~~~ +../../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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/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] @@ -1400,6 +1581,11 @@ /usr/include/c++/13/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 ../../rak/priority_queue_default.h:42, from ./../globals.h:41, from download.h:47, @@ -1407,6 +1593,10 @@ ../../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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ In file included from /usr/include/c++/13/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13/string:47, from /usr/include/c++/13/bits/locale_classes.h:40, @@ -1426,12 +1616,24 @@ In file included from ./../rpc/command.h:240, from ./../rpc/command_map.h:45, from ./../rpc/parse_commands.h:43, - from download_list.cc:54: + 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 download_list.cc:49: +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 ./../rpc/command.h:240, + from ./../rpc/command_map.h:45, + from ./../rpc/parse_commands.h:43, + from manager.cc:60: +./../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 manager.cc:51: /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ @@ -1442,107 +1644,29 @@ /usr/include/c++/13/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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/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++/13/bits/stl_function.h:1153:5: note: declared here - 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) - | ^~~~~~~ -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++/13/string:49, - from /usr/include/torrent/exceptions.h:47, - from curl_stack.cc:41: -/usr/include/c++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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 { - | ^~~~~~~~~~~~~~~ +./../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++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +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++/13/string:49: +/usr/include/c++/13/bits/stl_function.h:1126:5: note: declared here + 1126 | ptr_fun(_Result (*__x)(_Arg)) + | ^~~~~~~ In file included from ../../rak/priority_queue_default.h:42, - from ./../control.h:43, - from download_list.cc:56: + from ./../globals.h:41, + from manager.cc:64: ../../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++/13/bits/stl_algobase.h:65, - from /usr/include/c++/13/algorithm:60, - from download_list.cc:39: +In file included from /usr/include/c++/13/bits/stl_iterator_base_funcs.h:66, + from /usr/include/c++/13/string:47: /usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -1551,32 +1675,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++/13/string:49: -/usr/include/c++/13/bits/stl_function.h:1126:5: note: declared here - 1126 | ptr_fun(_Result (*__x)(_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)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/13/bits/stl_function.h:1438: -/usr/include/c++/13/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 curl_stack.cc:44: + 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++/13/bits/stl_algobase.h:65, from /usr/include/c++/13/algorithm:60, - from curl_stack.cc:39: + from view.cc:39: /usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -1597,41 +1704,15 @@ In file included from ./../rpc/command.h:240, from ./../rpc/command_map.h:45, from ./../rpc/parse_commands.h:43, - from manager.cc:60: -./../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 manager.cc:51: -/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++/13/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 view.cc:46: + from download_list.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/command_map.h:43: +In file included from download_list.cc:49: /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ -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++/13/bits/stl_function.h:1371:5: note: declared here - 1371 | mem_fun(_Ret (_Tp::*__f)()) - | ^~~~~~~ ./../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 { @@ -1639,26 +1720,23 @@ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -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++/13/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++/13/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++/13/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 ./../control.h:43, + from download_list.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++/13/bits/stl_algobase.h:65, + from /usr/include/c++/13/algorithm:60, + from download_list.cc:39: +/usr/include/c++/13/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 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 { @@ -1734,28 +1812,91 @@ /usr/include/c++/13/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 manager.cc:64: -../../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++/13/bits/stl_iterator_base_funcs.h:66, - from /usr/include/c++/13/string:47: -/usr/include/c++/13/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' +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++/13/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++/13/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++/13/bits/stl_function.h:1395:5: note: declared here + 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) + | ^~~~~~~ +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++/13/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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/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++/13/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++/13/backward/binders.h:136:5: note: declared here + 136 | bind1st(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ +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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/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++/13/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++/13/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++/13/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++/13/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++/13/bits/stl_function.h:1438: /usr/include/c++/13/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ @@ -1812,23 +1953,14 @@ /usr/include/c++/13/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 ./../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++/13/bits/stl_algobase.h:65, - from /usr/include/c++/13/algorithm:60, - from view.cc:39: -/usr/include/c++/13/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)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +/usr/include/c++/13/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ download_list.cc: In member function 'std::__cxx11::list::iterator core::DownloadList::insert(core::Download*)': download_list.cc:190:110: 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] 190 | std::for_each(control->view_manager()->begin(), control->view_manager()->end(), std::bind2nd(std::mem_fun(&View::insert), download)); @@ -1875,94 +2007,6 @@ /usr/include/c++/13/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++/13/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++/13/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++/13/bits/stl_function.h:1395:5: note: declared here - 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) - | ^~~~~~~ -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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/backward/binders.h:136:5: note: declared here - 136 | bind1st(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++/13/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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -/usr/include/c++/13/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 view_manager.cc:44: @@ -1980,14 +2024,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)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -/usr/include/c++/13/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, @@ -2124,31 +2160,15 @@ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -In file included from window_download_list.cc:39: +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> { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/functional:49, - from ../../rak/algorithm.h:41: + from frame.cc:40: /usr/include/c++/13/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++/13/bits/stl_algobase.h:65, - from /usr/include/c++/13/bits/hashtable_policy.h:36, - from /usr/include/c++/13/bits/hashtable.h:35, - from /usr/include/c++/13/bits/unordered_map.h:33, - from /usr/include/c++/13/unordered_map:41, - from /usr/include/c++/13/functional:63, - from ../../rak/priority_queue_default.h:40: -/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ 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 { @@ -2225,23 +2245,13 @@ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -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> { - | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/13/functional:49, - from frame.cc:40: -/usr/include/c++/13/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -In file included from window.h:41, - from window.cc:41: +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++/13/string:49, from /usr/include/c++/13/stdexcept:39, - from window.cc:39: + from window_download_chunks_seen.cc:40: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -2322,34 +2332,56 @@ /usr/include/c++/13/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++/13/functional:49, + from ../../rak/algorithm.h:41: +/usr/include/c++/13/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: + 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++/13/bits/stl_iterator_base_funcs.h:66, - from /usr/include/c++/13/string:47: +In file included from ./../rpc/command.h:240, + from ./../rpc/command_map.h:45, + from text_element.h:44, + from text_element_list.h:40, + from text_element_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 ./../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 /usr/include/c++/13/bits/stl_algobase.h:65, + from /usr/include/c++/13/bits/hashtable_policy.h:36, + from /usr/include/c++/13/bits/hashtable.h:35, + from /usr/include/c++/13/bits/unordered_map.h:33, + from /usr/include/c++/13/unordered_map:41, + from /usr/include/c++/13/functional:63, + from ../../rak/priority_queue_default.h:40: /usr/include/c++/13/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_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 { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/13/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +In file included from window.h:41, + 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++/13/string:49, - from /usr/include/c++/13/stdexcept:39, - from window_download_chunks_seen.cc:40: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -2424,56 +2456,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 ./../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 { - | ^~~~~~ -./../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++/13/string:49, - from /usr/include/torrent/exceptions.h:47, - from canvas.cc:42: -/usr/include/c++/13/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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/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_list.cc: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++/13/bits/stl_algobase.h:65, from /usr/include/c++/13/algorithm:60, - from ../../rak/algorithm.h:40: + from frame.cc:39: /usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -2482,11 +2473,57 @@ 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_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++/13/bits/stl_algobase.h:65, + from /usr/include/c++/13/bits/specfun.h:43, + from /usr/include/c++/13/cmath:3699, + from window_download_chunks_seen.cc:39: +/usr/include/c++/13/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' +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++/13/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++/13/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++/13/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] + 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/13/bits/stl_function.h:1438: +/usr/include/c++/13/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, - from text_element_list.h:40, - from text_element_list.cc:43: + 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)); @@ -2499,36 +2536,20 @@ ./../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++/13/string:49, + from /usr/include/torrent/exceptions.h:47, + from canvas.cc:42: /usr/include/c++/13/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_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++/13/bits/stl_algobase.h:65, - from /usr/include/c++/13/deque:62, - from /usr/include/torrent/rate.h:40, - from window_download_statusbar.cc:39: -/usr/include/c++/13/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_download_statusbar.h:40, - from window_download_statusbar.cc:49: -../../rak/functional.h: At global scope: + 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++/13/bits/refwrap.h:39, - from /usr/include/c++/13/deque:67: +In file included from /usr/include/c++/13/string:49, + from /usr/include/c++/13/stdexcept:39, + from window.cc:39: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -2598,76 +2619,45 @@ /usr/include/c++/13/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 { - | ^~~~~~ -./../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++/13/functional:49: -/usr/include/c++/13/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++/13/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -In file included from window.h:41, - 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 { - | ^~~~~~~~~~~~~~~ -/usr/include/c++/13/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++/13/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++/13/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++/13/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 { - | ^~~~~~~~~~~~~~~ +../../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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/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 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++/13/bits/stl_iterator_base_funcs.h:66, + from /usr/include/c++/13/string:47: +/usr/include/c++/13/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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/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_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] @@ -2699,7 +2689,83 @@ ../../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."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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 { + | ^~~~~~~~ +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from /usr/include/c++/13/bits/stl_algobase.h:65, + from /usr/include/c++/13/deque:62, + from /usr/include/torrent/rate.h:40, + from window_download_statusbar.cc:39: +/usr/include/c++/13/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 window_download_list.cc:41: +../../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] + 117 | : public std::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 /usr/include/c++/13/bits/stl_algobase.h:65, + from /usr/include/c++/13/algorithm:60, + from ../../rak/algorithm.h:40: +/usr/include/c++/13/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_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++/13/bits/refwrap.h:39, + from /usr/include/c++/13/deque:67: +/usr/include/c++/13/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++/13/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++/13/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 { + | ^~~~~~~~~~~~~~ +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 { + | ^~~~~~~~ +/usr/include/c++/13/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++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -2745,24 +2811,10 @@ /usr/include/c++/13/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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/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 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++/13/bits/stl_algobase.h:65, - from /usr/include/c++/13/algorithm:60, - from frame.cc:39: + from /usr/include/c++/13/bits/specfun.h:43, + from /usr/include/c++/13/cmath:3699, + from window_download_transfer_list.cc:39: /usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -2776,6 +2828,7 @@ ../../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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o window_file_list.o window_file_list.cc In file included from /usr/include/c++/13/bits/stl_function.h:1438: /usr/include/c++/13/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) @@ -2802,26 +2855,27 @@ /usr/include/c++/13/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_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++/13/bits/stl_algobase.h:65, - from /usr/include/c++/13/bits/specfun.h:43, - from /usr/include/c++/13/cmath:3699, - from window_download_chunks_seen.cc:39: -/usr/include/c++/13/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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o window_file_list.o window_file_list.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: +./../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++/13/functional:49: +/usr/include/c++/13/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, @@ -2834,6 +2888,26 @@ /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ +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++/13/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 { @@ -2842,57 +2916,15 @@ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -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++/13/bits/stl_function.h:1377:5: note: declared here - 1377 | mem_fun(_Ret (_Tp::*__f)() const) - | ^~~~~~~ -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++/13/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++/13/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++/13/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 ./../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++/13/bits/stl_algobase.h:65, - from /usr/include/c++/13/bits/specfun.h:43, - from /usr/include/c++/13/cmath:3699, - from window_download_transfer_list.cc:39: -/usr/include/c++/13/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++/13/bits/stl_function.h:1438: +In file included from /usr/include/c++/13/bits/stl_function.h:1438, + from /usr/include/c++/13/string:49, + from /usr/include/c++/13/stdexcept:39, + from window_download_transfer_list.cc:40: /usr/include/c++/13/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ @@ -2901,11 +2933,17 @@ ../../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)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +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)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/stl_function.h:1438: /usr/include/c++/13/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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o window_http_queue.o window_http_queue.cc +/usr/include/c++/13/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] @@ -2915,22 +2953,23 @@ /usr/include/c++/13/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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o window_input.o window_input.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++/13/bits/stl_function.h:1438, - from /usr/include/c++/13/string:49, - from /usr/include/c++/13/stdexcept:39, - from window_download_transfer_list.cc:40: +In file included from /usr/include/c++/13/bits/stl_function.h:1438: /usr/include/c++/13/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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o window_log.o window_log.cc g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o window_log_complete.o window_log_complete.cc g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o window_peer_list.o window_peer_list.cc +g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o window_text.o window_text.cc In file included from window.h:41, from window_input.h:42, from window_input.cc:40: @@ -3009,40 +3048,40 @@ /usr/include/c++/13/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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o window_title.o window_title.cc In file included from ../../rak/priority_queue_default.h:42, - from ./../globals.h:41, - from window.h:44: + 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++/13/bits/stl_iterator_base_funcs.h:66, - from /usr/include/c++/13/string:47: + from /usr/include/c++/13/string:47, + from /usr/include/c++/13/stdexcept:39, + from window_http_queue.cc:39: /usr/include/c++/13/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_get.h:45, - from window_http_queue.cc:41: + 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++/13/bits/stl_iterator_base_funcs.h:66, - from /usr/include/c++/13/string:47, - from /usr/include/c++/13/stdexcept:39, - from window_http_queue.cc:39: + from /usr/include/c++/13/string:47: /usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ -g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o window_statusbar.o window_statusbar.cc In file included from window.h:41, - from window_log_complete.h:42, - from window_log_complete.cc:43: + 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++/13/string:49, - from canvas.h:40, - from window_log_complete.cc:41: + from /usr/include/torrent/torrent.h:41, + from window_log.cc:40: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -3100,11 +3139,6 @@ /usr/include/c++/13/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:433:31: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 433 | class bind2nd_t : public std::unary_function { | ^~~~~~~~~~~~~~ @@ -3117,6 +3151,18 @@ /usr/include/c++/13/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++/13/bits/stl_algobase.h:65, + from /usr/include/c++/13/list:62, + from /usr/include/torrent/torrent.h:40: +/usr/include/c++/13/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."); @@ -3124,21 +3170,33 @@ ../../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: + 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++/13/bits/stl_iterator_base_funcs.h:66, - from /usr/include/c++/13/string:47: + from /usr/include/c++/13/string:47, + from /usr/include/c++/13/bits/locale_classes.h:40, + from /usr/include/c++/13/locale:41, + from window_file_list.cc:39: /usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ -In file included from window_http_queue.cc:45: -../../rak/functional.h: At global scope: +../../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."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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++/13/string:49: +../../rak/priority_queue_default.h:56:7: note: in C++11 destructors default to 'noexcept' +In file included from /usr/include/c++/13/string:49, + from canvas.h:40, + from window_log_complete.cc:41: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -3208,19 +3266,14 @@ /usr/include/c++/13/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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o window_string_list.o window_string_list.cc 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: + 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++/13/bits/stl_iterator_base_funcs.h:66, - from /usr/include/c++/13/string:47, - from /usr/include/c++/13/bits/locale_classes.h:40, - from /usr/include/c++/13/locale:41, - from window_file_list.cc:39: + from /usr/include/c++/13/string:47: /usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -3234,88 +3287,17 @@ 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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o window_text.o window_text.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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/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++/13/bits/stl_function.h:1383:5: note: declared here - 1383 | mem_fun_ref(_Ret (_Tp::*__f)()) - | ^~~~~~~~~~~ -../../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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/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++/13/bits/stl_function.h:1438, - from /usr/include/c++/13/string:49: -/usr/include/c++/13/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_peer_list.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++/13/bits/stl_iterator_base_funcs.h:66, - from /usr/include/c++/13/string:47, - from /usr/include/c++/13/stdexcept:39, - from window_peer_list.cc:39: -/usr/include/c++/13/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] - 118 | struct compare_base : public std::binary_function<_Value, _Value, bool> { - | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/13/string:49: -/usr/include/c++/13/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: +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] 174 | struct less2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/13/string:49, - from /usr/include/torrent/torrent.h:41, - from window_log.cc:40: +In file included from /usr/include/c++/13/string:49: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -3337,7 +3319,6 @@ /usr/include/c++/13/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ -g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o window_title.o window_title.cc ../../rak/functional.h:299:28: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 299 | struct on2_t : public std::binary_function { | ^~~~~~~~~~~~~~~ @@ -3386,42 +3367,6 @@ /usr/include/c++/13/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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o window_tracker_list.o window_tracker_list.cc -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++/13/bits/stl_algobase.h:65, - from /usr/include/c++/13/list:62, - from /usr/include/torrent/torrent.h:40: -/usr/include/c++/13/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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ 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 { @@ -3497,6 +3442,15 @@ /usr/include/c++/13/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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ In file included from window.h:41, from window_string_list.h:43, from window_string_list.cc:41: @@ -3586,6 +3540,34 @@ /usr/include/c++/13/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++/13/bits/stl_function.h:1438, + from /usr/include/c++/13/string:49: +/usr/include/c++/13/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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/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."); @@ -3609,6 +3591,13 @@ 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' +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++/13/bits/stl_function.h:1383:5: note: declared here + 1383 | mem_fun_ref(_Ret (_Tp::*__f)()) + | ^~~~~~~~~~~ In file included from window.h:41, from window_statusbar.h:42, from window_statusbar.cc:45: @@ -3705,12 +3694,41 @@ /usr/include/c++/13/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: +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] + 117 | : public std::iterator { + | ^~~~~~~~ +In file included from /usr/include/c++/13/bits/stl_iterator_base_funcs.h:66, + from /usr/include/c++/13/string:47, + from /usr/include/c++/13/stdexcept:39, + from window_peer_list.cc:39: +/usr/include/c++/13/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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o window_tracker_list.o window_tracker_list.cc +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] 118 | struct compare_base : public std::binary_function<_Value, _Value, bool> { | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/13/functional:49, - from ../../rak/algorithm.h:41: +In file included from /usr/include/c++/13/string:49: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -3823,11 +3841,15 @@ /usr/include/c++/13/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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/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 window.h:44, @@ -3846,6 +3868,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' ../../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] @@ -3864,6 +3891,15 @@ /usr/include/c++/13/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++/13/functional:49, + from ../../rak/algorithm.h:41: +/usr/include/c++/13/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, @@ -3985,19 +4021,6 @@ /usr/include/c++/13/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++/13/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++/13/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)); @@ -4014,6 +4037,19 @@ /usr/include/c++/13/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++/13/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++/13/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') @@ -4126,42 +4162,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_task.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++/13/bits/stl_iterator_base_funcs.h:66, - from /usr/include/c++/13/string:47, - from /usr/include/torrent/exceptions.h:47, - from scgi_task.cc:44: -/usr/include/c++/13/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 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++/13/bits/stl_iterator_base_funcs.h:66, - from /usr/include/c++/13/string:47, - from ../../rak/socket_address.h:51, - from scgi.cc:40: -/usr/include/c++/13/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 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 { @@ -4253,14 +4253,15 @@ 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ In file included from ../../rak/priority_queue_default.h:42, - from ./../globals.h:41, - from command_map.cc:45: + from ./../control.h:43, + from scgi_task.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++/13/bits/stl_algobase.h:65, - from /usr/include/c++/13/vector:62, - from command_map.cc:39: +In file included from /usr/include/c++/13/bits/stl_iterator_base_funcs.h:66, + from /usr/include/c++/13/string:47, + from /usr/include/torrent/exceptions.h:47, + from scgi_task.cc:44: /usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -4269,6 +4270,17 @@ 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 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 ../../rak/priority_queue_default.h:42, from ./../globals.h:41, from ./../core/download.h:47, @@ -4288,6 +4300,19 @@ 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.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++/13/bits/hashtable.h:37, + from /usr/include/c++/13/bits/unordered_map.h:33, + from /usr/include/c++/13/unordered_map:41, + from object_storage.h:45: +/usr/include/c++/13/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ In file included from ../../rak/priority_queue_default.h:42, from ./../thread_base.h:44, from exec_file.cc:49: @@ -4305,99 +4330,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 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++/13/string:49: -/usr/include/c++/13/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++/13/bits/stl_function.h:131:12: note: declared here - 131 | struct binary_function - | ^~~~~~~~~~~~~~~ -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++/13/string:49: -/usr/include/c++/13/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++/13/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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/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.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 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++/13/bits/refwrap.h:39, - from /usr/include/c++/13/vector:68: -/usr/include/c++/13/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++/13/bits/stl_function.h:1438, - from /usr/include/c++/13/string:49: -/usr/include/c++/13/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: -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: -/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 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, @@ -4418,31 +4350,23 @@ /usr/include/c++/13/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++/13/bits/stl_function.h:1438, - from /usr/include/c++/13/bits/refwrap.h:39, - from /usr/include/c++/13/vector:68, - from /usr/include/torrent/download.h:41: -/usr/include/c++/13/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ -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++/13/bits/hashtable.h:37, - from /usr/include/c++/13/bits/unordered_map.h:33, - from /usr/include/c++/13/unordered_map:41, - from object_storage.h:45: -/usr/include/c++/13/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: +../../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++/13/bits/stl_algobase.h:65, + from /usr/include/c++/13/vector:62, + from command_map.cc:39: +/usr/include/c++/13/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' parse_commands.cc:55:36: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 55 | struct command_map_is_space : std::unary_function { | ^~~~~~~~~~~~~~ @@ -4474,41 +4398,73 @@ /usr/include/c++/13/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 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 { | ^~~~~~ -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++/13/bits/stl_function.h:1438, + from /usr/include/c++/13/string:49: +/usr/include/c++/13/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 ./../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++/13/bits/stl_iterator_base_funcs.h:66, + from /usr/include/c++/13/string:47, + from ../../rak/socket_address.h:51, + from scgi.cc:40: +/usr/include/c++/13/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."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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++/13/string:49: +/usr/include/c++/13/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++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +../../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++/13/bits/stl_function.h:1438: +In file included from /usr/include/c++/13/bits/stl_function.h:1438, + from /usr/include/c++/13/bits/refwrap.h:39, + from /usr/include/c++/13/vector:68, + from /usr/include/torrent/download.h:41: /usr/include/c++/13/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++/13/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] @@ -4518,6 +4474,26 @@ /usr/include/c++/13/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.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 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++/13/bits/refwrap.h:39, + from /usr/include/c++/13/vector:68: +/usr/include/c++/13/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] @@ -4532,6 +4508,22 @@ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +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++/13/string:49: +/usr/include/c++/13/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++/13/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_scheduler_item.h:40, @@ -4550,6 +4542,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.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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/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, @@ -4575,6 +4576,32 @@ 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++/13/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +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++/13/bits/stl_function.h:1389:5: note: declared here + 1389 | mem_fun_ref(_Ret (_Tp::*__f)() const) + | ^~~~~~~~~~~ +In file included from command.h:240, + 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] @@ -4607,6 +4634,15 @@ /usr/include/c++/13/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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ 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++/13/bits/stl_pair.h:688:35, inlined from 'std::map::iterator rpc::CommandMap::insert(std::map::key_type, int, const char*, const char*)' at command_map.cc:87:33: @@ -4617,16 +4653,6 @@ command_map.cc:87:87: note: '' declared here 87 | return base_type::insert(itr, value_type(key, command_map_data_type(flags, parm, doc))); | ^ -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++/13/bits/stl_pair.h:688:35, - inlined from 'void rpc::CommandMap::create_redirect(std::map::key_type, std::map::key_type, int)' at command_map.cc:145:36: -command_map.h:64:47: warning: '.rpc::command_map_data_type::m_anySlot' may be used uninitialized [-Wmaybe-uninitialized] - 64 | m_variable(src.m_variable), m_anySlot(src.m_anySlot), - | ~~~~^~~~~~~~~ -command_map.cc: In member function 'void rpc::CommandMap::create_redirect(std::map::key_type, std::map::key_type, int)': -command_map.cc:147:100: note: '' declared here - 147 | dest_itr->second.m_doc))); - | ^ In copy constructor 'torrent::Object::Object(const torrent::Object&)', inlined from 'constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = torrent::Object; _U2 = const char*&; typename std::enable_if<(std::_PCC::_MoveConstructiblePair<_U1, _U2>() && std::_PCC::_ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type = true; _T1 = torrent::Object; _T2 = const char*]' at /usr/include/c++/13/bits/stl_pair.h:688:4, inlined from 'constexpr std::pair::type>::__type, typename std::__strip_reference_wrapper::type>::__type> std::make_pair(_T1&&, _T2&&) [with _T1 = torrent::Object; _T2 = const char*&]' at /usr/include/c++/13/bits/stl_pair.h:927:72, @@ -4638,6 +4664,16 @@ parse_commands.cc:137:43: note: '' declared here 137 | return std::make_pair(torrent::Object(), first); | ^ +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++/13/bits/stl_pair.h:688:35, + inlined from 'void rpc::CommandMap::create_redirect(std::map::key_type, std::map::key_type, int)' at command_map.cc:145:36: +command_map.h:64:47: warning: '.rpc::command_map_data_type::m_anySlot' may be used uninitialized [-Wmaybe-uninitialized] + 64 | m_variable(src.m_variable), m_anySlot(src.m_anySlot), + | ~~~~^~~~~~~~~ +command_map.cc: In member function 'void rpc::CommandMap::create_redirect(std::map::key_type, std::map::key_type, int)': +command_map.cc:147:100: note: '' declared here + 147 | dest_itr->second.m_doc))); + | ^ rm -f libsub_rpc.a ar cru libsub_rpc.a command.o command_map.o command_scheduler.o command_scheduler_item.o exec_file.o object_storage.o parse.o parse_commands.o scgi.o scgi_task.o xmlrpc.o ar: `u' modifier ignored since `D' is the default (see `U') @@ -4657,15 +4693,6 @@ g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o element_string_list.o element_string_list.cc g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o element_text.o element_text.cc g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o element_tracker_list.o element_tracker_list.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++/13/functional:49, - from ../../rak/algorithm.h:41: -/usr/include/c++/13/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 { @@ -4693,25 +4720,16 @@ /usr/include/c++/13/bits/stl_function.h:117:12: note: declared here 117 | struct unary_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++/13/bits/stl_iterator_base_funcs.h:66, - from /usr/include/c++/13/string:47, - from /usr/include/torrent/exceptions.h:47, - from element_string_list.cc:39: -/usr/include/c++/13/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 { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/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> { + | ^~~~~~~~~~~~~~~ ../../rak/functional.h:320:32: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 320 | struct mem_ptr_t : public std::unary_function { | ^~~~~~~~~~~~~~ @@ -4748,6 +4766,29 @@ /usr/include/c++/13/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++/13/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +In file included from /usr/include/c++/13/functional:49, + from ../../rak/algorithm.h:41: +/usr/include/c++/13/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++/13/bits/stl_algobase.h:65, + from /usr/include/c++/13/algorithm:60, + from ../../rak/algorithm.h:40: +/usr/include/c++/13/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."); @@ -4830,12 +4871,6 @@ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct 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++/13/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: @@ -4852,45 +4887,47 @@ 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, + 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 { + | ^~~~~~ 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++/13/bits/stl_algobase.h:65, - from /usr/include/c++/13/algorithm:60, - from ../../rak/algorithm.h:40: -/usr/include/c++/13/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_peer_list.cc:46: + 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++/13/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13/string:47, from /usr/include/torrent/exceptions.h:47, - from element_peer_list.cc:39: + from element_log_complete.cc:39: /usr/include/c++/13/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 { + | ^~~~~~~~~~~~~~~ +/usr/include/c++/13/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 ./../display/window.h:41, - from ./../display/window_string_list.h:43, - from element_string_list.h:48, - from element_string_list.cc:45: + 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 { @@ -5043,86 +5080,15 @@ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -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++/13/string:49, - from /usr/include/c++/13/bits/locale_classes.h:40, - from /usr/include/c++/13/bits/ios_base.h:41, - from /usr/include/c++/13/ios:44, - from /usr/include/c++/13/istream:40, - from /usr/include/c++/13/sstream:40, - from download_list.cc:39: -/usr/include/c++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/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 ./../display/window.h:44: @@ -5139,26 +5105,16 @@ 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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/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++/13/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13/string:47, from /usr/include/torrent/exceptions.h:47, - from element_download_list.cc:39: + from element_peer_list.cc:39: /usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -5167,20 +5123,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.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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/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_text.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)); @@ -5193,6 +5140,9 @@ ./../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++/13/string:49, + from /usr/include/torrent/exceptions.h:47, + from element_text.cc:39: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -5213,12 +5163,6 @@ ./../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++/13/string:49, - from /usr/include/torrent/exceptions.h:47, - from element_menu.cc:39: -/usr/include/c++/13/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, @@ -5235,100 +5179,22 @@ ../../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, - from ./../display/text_element_string.h:44, - from element_peer_list.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 ./../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++/13/string:49: -/usr/include/c++/13/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 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++/13/string:49: +In file included from /usr/include/c++/13/string:49, + from /usr/include/torrent/exceptions.h:47, + from element_menu.cc:39: /usr/include/c++/13/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++/13/bits/stl_iterator_base_funcs.h:66, - from /usr/include/c++/13/string:47, - from /usr/include/torrent/exceptions.h:47, - from element_log_complete.cc:39: -/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ -g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o element_transfer_list.o element_transfer_list.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' -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++/13/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)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/13/bits/stl_function.h:1438: -/usr/include/c++/13/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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/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_log_complete.h:42, - from element_log_complete.cc:45: -../../rak/functional.h: At global scope: + 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++/13/string:49: +In file included from /usr/include/c++/13/string:49, + from /usr/include/torrent/exceptions.h:47, + from element_tracker_list.cc:39: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -5341,6 +5207,10 @@ ../../rak/functional.h:273:29: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 273 | struct invert : public std::unary_function { | ^~~~~~~~~~~~~~ +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 { + | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ @@ -5395,45 +5265,16 @@ ../../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 /usr/include/c++/13/string:49, + from /usr/include/c++/13/bits/locale_classes.h:40, + from /usr/include/c++/13/bits/ios_base.h:41, + from /usr/include/c++/13/ios:44, + from /usr/include/c++/13/istream:40, + from /usr/include/c++/13/sstream:40, + from download_list.cc:39: /usr/include/c++/13/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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/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_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++/13/string:49, - from /usr/include/torrent/exceptions.h:47, - from element_tracker_list.cc:39: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -5519,30 +5360,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' -g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o root.o root.cc -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_text.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 { - | ^~~~~~ -./../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++/13/string:49, - from /usr/include/torrent/exceptions.h:47, - from element_text.cc:39: -/usr/include/c++/13/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, @@ -5560,15 +5377,34 @@ 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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/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_list.cc:47: + 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++/13/bits/stl_iterator_base_funcs.h:66, - from /usr/include/c++/13/string:47: + from /usr/include/c++/13/string:47, + from /usr/include/torrent/exceptions.h:47, + from element_string_list.cc:39: /usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -5577,6 +5413,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' +g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o element_transfer_list.o element_transfer_list.cc +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_peer_list.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 ./../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 ./../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 { + | ^~~~~~~~~~~~~~~ +./../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++/13/string:49: +/usr/include/c++/13/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +In file included from /usr/include/c++/13/string:49: +/usr/include/c++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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++/13/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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/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] @@ -5607,6 +5552,50 @@ 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++/13/bits/stl_iterator_base_funcs.h:66, + from /usr/include/c++/13/string:47, + from /usr/include/torrent/exceptions.h:47, + from element_download_list.cc:39: +/usr/include/c++/13/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++/13/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)); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~ +In file included from /usr/include/c++/13/bits/stl_function.h:1438: +/usr/include/c++/13/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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/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 { @@ -5628,28 +5617,50 @@ In file included from ./../rpc/command.h:240, from ./../rpc/command_map.h:45, from ./../rpc/parse_commands.h:43, - from download_list.cc:60: + 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 ./../core/view.h:55, - from download_list.cc:50: +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 { | ^~~~~~ +In file included from ../../rak/priority_queue_default.h:42, + from ./../globals.h:41, + from ./../core/download.h:47, + from download_list.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++/13/bits/stl_iterator_base_funcs.h:66, + from /usr/include/c++/13/string:47: +/usr/include/c++/13/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++/13/string:49: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -download_list.cc: In destructor 'virtual ui::DownloadList::~DownloadList()': -download_list.cc:87:5: warning: 'throw' will always call 'terminate' [-Wterminate] - 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' +g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o root.o root.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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/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, @@ -5670,15 +5681,26 @@ /usr/include/c++/13/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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/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_list.cc:60: +./../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 download_list.cc:50: +/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++/13/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ In file included from ./../display/window.h:41, from ./../display/window_download_transfer_list.h:43, from element_transfer_list.cc:42: @@ -5757,11 +5779,6 @@ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -download.cc: In destructor 'virtual ui::Download::~Download()': -download.cc:101:5: warning: 'throw' will always call 'terminate' [-Wterminate] - 101 | throw torrent::internal_error("ui::Download::~Download() called on an active object."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -download.cc:101:5: 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: @@ -5778,6 +5795,25 @@ 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_list.cc: In destructor 'virtual ui::DownloadList::~DownloadList()': +download_list.cc:87:5: warning: 'throw' will always call 'terminate' [-Wterminate] + 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' +download.cc: In destructor 'virtual ui::Download::~Download()': +download.cc:101:5: warning: 'throw' will always call 'terminate' [-Wterminate] + 101 | throw torrent::internal_error("ui::Download::~Download() called on an active object."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +download.cc:101:5: 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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/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] @@ -5970,42 +6006,12 @@ /usr/include/c++/13/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 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++/13/bits/stl_iterator_base_funcs.h:66, - from /usr/include/c++/13/string:47, - from /usr/include/torrent/exceptions.h:47, - from command_helpers.cc:39: -/usr/include/c++/13/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++/13/bits/stl_iterator_base_funcs.h:66, - from /usr/include/c++/13/string:47, - from /usr/include/c++/13/bits/locale_classes.h:40, - from /usr/include/c++/13/bits/ios_base.h:41, - from /usr/include/c++/13/ios:44, - from /usr/include/c++/13/istream:40, - from /usr/include/c++/13/fstream:40, - from command_ip.cc:39: -/usr/include/c++/13/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, @@ -6025,16 +6031,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_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 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 { @@ -6109,29 +6105,41 @@ /usr/include/c++/13/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++/13/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_local.cc:53: + 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++/13/bits/stl_algobase.h:65, - from /usr/include/c++/13/bits/hashtable_policy.h:36, - from /usr/include/c++/13/bits/hashtable.h:35, - from /usr/include/c++/13/bits/unordered_map.h:33, - from /usr/include/c++/13/unordered_map:41, - from /usr/include/c++/13/functional:63, - from command_local.cc:40: +In file included from ../rak/priority_queue_default.h:42, + 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++/13/bits/stl_iterator_base_funcs.h:66, + from /usr/include/c++/13/string:47: +/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here + 127 | struct _GLIBCXX17_DEPRECATED iterator + | ^~~~~~~~ +In file included from /usr/include/c++/13/bits/stl_iterator_base_funcs.h:66, + from /usr/include/c++/13/string:47, + from /usr/include/torrent/exceptions.h:47, + from command_helpers.cc:39: /usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ -../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++/13/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_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."); @@ -6139,7 +6147,7 @@ ../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_helpers.cc:43: + 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)); @@ -6160,7 +6168,7 @@ | ^~~~~~~~~~~~~~~ In file included from rpc/command.h:240, from command_helpers.h:40, - from command_ip.cc:46: + 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)); @@ -6169,65 +6177,133 @@ /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 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++/13/bits/stl_iterator_base_funcs.h:66, - from /usr/include/c++/13/string:47: -/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here - 127 | struct _GLIBCXX17_DEPRECATED iterator - | ^~~~~~~~ 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++/13/string:49: +In file included from /usr/include/c++/13/string:49, + from /usr/include/c++/13/bitset:52, + from /usr/include/torrent/utils/log.h:40, + from command_dynamic.cc:40: /usr/include/c++/13/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++/13/bits/stl_iterator_base_funcs.h:66, + from /usr/include/c++/13/string:47, + from ../rak/path.h:44, + from command_peer.cc:40: +/usr/include/c++/13/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++/13/bits/stl_iterator_base_funcs.h:66, + from /usr/include/c++/13/string:47, + from /usr/include/c++/13/bits/locale_classes.h:40, + from /usr/include/c++/13/bits/ios_base.h:41, + from /usr/include/c++/13/ios:44, + from /usr/include/c++/13/istream:40, + from /usr/include/c++/13/fstream:40, + from command_ip.cc:39: +/usr/include/c++/13/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++/13/bits/stl_algobase.h:65, + from /usr/include/c++/13/bits/hashtable_policy.h:36, + from /usr/include/c++/13/bits/hashtable.h:35, + from /usr/include/c++/13/bits/unordered_map.h:33, + from /usr/include/c++/13/unordered_map:41, + from /usr/include/c++/13/functional:63, + from command_local.cc:40: +/usr/include/c++/13/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 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 { + | ^~~~~~~~~~~~~~ +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++/13/functional:49, + from command_download.cc:39: +/usr/include/c++/13/bits/stl_function.h:117:12: note: declared here + 117 | struct unary_function + | ^~~~~~~~~~~~~~ +/usr/include/c++/13/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++/13/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_file.cc:49: + 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 rpc/command.h:43: +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 { | ^~~~~~ -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++/13/string:49: -/usr/include/c++/13/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: + 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++/13/bits/stl_iterator_base_funcs.h:66, - from /usr/include/c++/13/string:47, - from /usr/include/torrent/download/resource_manager.h:40, - from command_groups.cc:39: +In file included from /usr/include/c++/13/bits/stl_algobase.h:65, + from /usr/include/c++/13/bits/hashtable_policy.h:36, + from /usr/include/c++/13/bits/hashtable.h:35, + from /usr/include/c++/13/bits/unordered_map.h:33, + from /usr/include/c++/13/unordered_map:41, + from /usr/include/c++/13/functional:63, + from command_network.cc:39: /usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -6235,6 +6311,13 @@ ../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."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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++/13/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ ../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, @@ -6255,29 +6338,39 @@ 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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/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_helpers.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 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++/13/string:49: +/usr/include/c++/13/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_network.cc:54: + 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++/13/bits/stl_algobase.h:65, - from /usr/include/c++/13/bits/hashtable_policy.h:36, - from /usr/include/c++/13/bits/hashtable.h:35, - from /usr/include/c++/13/bits/unordered_map.h:33, - from /usr/include/c++/13/unordered_map:41, - from /usr/include/c++/13/functional:63, - from command_network.cc:39: +In file included from /usr/include/c++/13/bits/stl_iterator_base_funcs.h:66, + from /usr/include/c++/13/string:47, + from /usr/include/torrent/download/resource_manager.h:40, + from command_groups.cc:39: /usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -6316,27 +6409,20 @@ /usr/include/c++/13/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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/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 core/curl_stack.h:43, - from core/poll_manager.h:40, - from core/manager.h:47, - from command_peer.cc:49: + 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++/13/bits/stl_iterator_base_funcs.h:66, - from /usr/include/c++/13/string:47, - from ../rak/path.h:44, - from command_peer.cc:40: +In file included from /usr/include/c++/13/bits/stl_algobase.h:65, + from /usr/include/c++/13/bits/hashtable_policy.h:36, + from /usr/include/c++/13/bits/hashtable.h:35, + from /usr/include/c++/13/bits/unordered_map.h:33, + from /usr/include/c++/13/unordered_map:41, + from /usr/include/c++/13/functional:63, + from command_events.cc:39: /usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -6345,39 +6431,29 @@ 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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/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_groups.cc:46: + 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_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 { | ^~~~~~ -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++/13/string:49: -/usr/include/c++/13/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++/13/functional:49, - from command_download.cc:39: -/usr/include/c++/13/bits/stl_function.h:117:12: note: declared here - 117 | struct unary_function - | ^~~~~~~~~~~~~~ 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)); @@ -6392,17 +6468,55 @@ 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++/13/string:49, - from /usr/include/c++/13/bitset:52, - from /usr/include/torrent/utils/log.h:40, - from command_dynamic.cc:40: +In file included from /usr/include/c++/13/string:49: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ +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++/13/string:49: +/usr/include/c++/13/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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/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_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/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 ../rak/priority_queue_default.h:42, from ./globals.h:41, from core/download.h:47, - from command_events.cc:50: + from command_download.cc:63: ../rak/priority_queue.h:117:17: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | : public std::iterator { | ^~~~~~~~ @@ -6411,11 +6525,18 @@ from /usr/include/c++/13/bits/hashtable.h:35, from /usr/include/c++/13/bits/unordered_map.h:33, from /usr/include/c++/13/unordered_map:41, - from /usr/include/c++/13/functional:63, - from command_events.cc:39: + from /usr/include/c++/13/functional:63: /usr/include/c++/13/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++/13/string:49: +/usr/include/c++/13/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."); @@ -6453,17 +6574,15 @@ /usr/include/c++/13/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 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/command.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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/backward/binders.h:172:5: note: declared here + 172 | bind2nd(const _Operation& __fn, const _Tp& __x) + | ^~~~~~~ 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()) @@ -6478,64 +6597,29 @@ /usr/include/c++/13/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ -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++/13/string:49: -/usr/include/c++/13/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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o command_throttle.o command_throttle.cc -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++/13/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++/13/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 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++/13/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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/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_network.cc:59: + 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_network.cc:58: + 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 { @@ -6564,6 +6648,7 @@ /usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here 49 | class LIBTORRENT_EXPORT Object { | ^~~~~~ +g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o command_throttle.o command_throttle.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 { @@ -6572,59 +6657,19 @@ /usr/include/c++/13/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_download.cc:63: -../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++/13/bits/stl_algobase.h:65, - from /usr/include/c++/13/bits/hashtable_policy.h:36, - from /usr/include/c++/13/bits/hashtable.h:35, - from /usr/include/c++/13/bits/unordered_map.h:33, - from /usr/include/c++/13/unordered_map:41, - from /usr/include/c++/13/functional:63: -/usr/include/c++/13/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/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++/13/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++/13/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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/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_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 { + | ^~~~~~ In file included from rpc/command_scheduler.h:43, from command_events.cc:54: ../rak/functional_fun.h: At global scope: @@ -6641,26 +6686,6 @@ /usr/include/c++/13/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 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_events.cc:53: -/usr/include/torrent/object.h:49:25: note: 'class torrent::Object' declared here - 49 | class LIBTORRENT_EXPORT Object { - | ^~~~~~ -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 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,58 +6693,27 @@ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -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 command_helpers.h:40, - from command_download.cc:70: + 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 rpc/parse.h:42, - from command_download.cc:66: +In file included from core/view.h:55, + from core/view_manager.h:43, + from command_events.cc:53: /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 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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/backward/binders.h:172:5: note: declared here - 172 | bind2nd(const _Operation& __fn, const _Tp& __x) - | ^~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -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] - 225 | while ((itr = std::find_if(itr, downloadList->end(), std::mem_fun(&core::Download::is_downloading))) - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/c++/13/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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/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()) @@ -6741,24 +6735,39 @@ /usr/include/c++/13/bits/stl_function.h:1153:5: note: declared here 1153 | ptr_fun(_Result (*__x)(_Arg1, _Arg2)) | ^~~~~~~ -../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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/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++/13/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++/13/bits/stl_function.h:131:12: note: declared here + 131 | struct binary_function + | ^~~~~~~~~~~~~~~ +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] + 225 | while ((itr = std::find_if(itr, downloadList->end(), std::mem_fun(&core::Download::is_downloading))) + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/c++/13/bits/stl_function.h:1377:5: note: declared here + 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ +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 ../rak/priority_queue_default.h:42, from core/curl_stack.h:43, from core/poll_manager.h:40, @@ -6819,9 +6828,34 @@ /usr/include/c++/13/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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o command_ui.o command_ui.cc In file included from ../rak/priority_queue_default.h:42, from ./globals.h:41, from core/download.h:47, @@ -6842,21 +6876,8 @@ 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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o control.o control.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_scheduler.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++/13/bits/stl_algobase.h:65, - from /usr/include/c++/13/vector:62, - from core/manager.h:41: -/usr/include/c++/13/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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o command_ui.o command_ui.cc In file included from rpc/command.h:240, from command_helpers.h:40, from command_tracker.cc:51: @@ -6878,11 +6899,6 @@ /usr/include/c++/13/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' 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)); @@ -6905,44 +6921,21 @@ /usr/include/c++/13/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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o control.o control.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 control.cc:44: + from command_scheduler.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++/13/bits/stl_algobase.h:65, - from /usr/include/c++/13/list:62, - from /usr/include/torrent/connection_manager.h:42, - from control.cc:41: + from /usr/include/c++/13/vector:62, + from core/manager.h:41: /usr/include/c++/13/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 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++/13/bits/refwrap.h:39, - from /usr/include/c++/13/vector:68: -/usr/include/c++/13/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."); @@ -7032,7 +7025,6 @@ /usr/include/c++/13/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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o globals.o globals.cc 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 { @@ -7046,6 +7038,48 @@ /usr/include/c++/13/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++/13/bits/stl_algobase.h:65, + from /usr/include/c++/13/bitset:49: +/usr/include/c++/13/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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o globals.o globals.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' +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++/13/bits/refwrap.h:39, + from /usr/include/c++/13/vector:68: +/usr/include/c++/13/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] @@ -7059,12 +7093,57 @@ from core/curl_stack.h:43, from core/poll_manager.h:40, from core/manager.h:47, - from command_ui.cc:49: + from control.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++/13/bits/stl_algobase.h:65, - from /usr/include/c++/13/bitset:49: + from /usr/include/c++/13/list:62, + from /usr/include/torrent/connection_manager.h:42, + from control.cc:41: +/usr/include/c++/13/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_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++/13/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++/13/bits/stl_algobase.h:65, + from /usr/include/c++/13/bits/hashtable_policy.h:36, + from /usr/include/c++/13/bits/hashtable.h:35, + from /usr/include/c++/13/bits/unordered_map.h:33, + from /usr/include/c++/13/unordered_map:41, + from /usr/include/c++/13/functional:63, + from ../rak/priority_queue_default.h:40: /usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ @@ -7130,11 +7209,6 @@ ../rak/functional.h:408:31: warning: 'template struct std::unary_function' is deprecated [-Wdeprecated-declarations] 408 | class bind1st_t : public std::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' /usr/include/c++/13/bits/stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~ @@ -7150,6 +7224,21 @@ /usr/include/c++/13/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++/13/bits/stl_function.h:1438: +/usr/include/c++/13/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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o option_parser.o option_parser.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' 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] @@ -7164,7 +7253,6 @@ /usr/include/c++/13/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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o option_parser.o option_parser.cc In file included from rpc/command.h:240, from rpc/command_map.h:45, from rpc/parse_commands.h:43, @@ -7186,75 +7274,27 @@ /usr/include/c++/13/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_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++/13/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++/13/bits/stl_function.h:1438: -/usr/include/c++/13/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++/13/bits/stl_algobase.h:65, - from /usr/include/c++/13/bits/hashtable_policy.h:36, - from /usr/include/c++/13/bits/hashtable.h:35, - from /usr/include/c++/13/bits/unordered_map.h:33, - from /usr/include/c++/13/unordered_map:41, - from /usr/include/c++/13/functional:63, - from ../rak/priority_queue_default.h:40: -/usr/include/c++/13/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++/13/bits/stl_function.h:1438: +In file included from /usr/include/c++/13/bits/stl_function.h:1438, + from /usr/include/c++/13/functional:49: /usr/include/c++/13/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' g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o signal_handler.o signal_handler.cc +command_dynamic.cc: In function 'torrent::Object system_method_insert(const torrent::Object::list_type&)': +command_dynamic.cc:322:9: warning: 'new_flags' may be used uninitialized [-Wmaybe-uninitialized] + 322 | int new_flags; + | ^~~~~~~~~ ../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++/13/bits/stl_function.h:1438, - from /usr/include/c++/13/functional:49: +In file included from /usr/include/c++/13/bits/stl_function.h:1438: /usr/include/c++/13/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ @@ -7281,6 +7321,7 @@ /usr/include/c++/13/bits/stl_function.h:1046:5: note: declared here 1046 | not1(const _Predicate& __pred) | ^~~~ +g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-linux-gnu -c -o thread_worker.o thread_worker.cc In file included from ../rak/priority_queue_default.h:42, from thread_base.h:44, from thread_base.cc:39: @@ -7304,21 +7345,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' -command_dynamic.cc: In function 'torrent::Object system_method_insert(const torrent::Object::list_type&)': -command_dynamic.cc:322:9: warning: 'new_flags' may be used uninitialized [-Wmaybe-uninitialized] - 322 | int new_flags; - | ^~~~~~~~~ -g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-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] - 84 | return std::find_if(begin(), end(), std::bind2nd(m_equal, key)); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -In file included from /usr/include/c++/13/bits/stl_function.h:1438, - from /usr/include/c++/13/functional:49: -/usr/include/c++/13/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_worker.h:40, @@ -7338,6 +7364,16 @@ /usr/include/c++/13/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++/13/bits/stl_function.h:1438, + from /usr/include/c++/13/functional:49: +/usr/include/c++/13/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."); @@ -7391,7 +7427,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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-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/aarch64-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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-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/aarch64-linux-gnu -lxmlrpc_server -lxmlrpc -lxmlrpc_xmlparse -lxmlrpc_xmltok -lxmlrpc_util libtool: link: g++ -g -O2 -ffile-prefix-map=/build/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-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/aarch64-linux-gnu -lxmlrpc_server -lxmlrpc -lxmlrpc_xmlparse -lxmlrpc_xmltok -lxmlrpc_util make[4]: Leaving directory '/build/reproducible-path/rtorrent-0.9.8/src' make[3]: Leaving directory '/build/reproducible-path/rtorrent-0.9.8/src' @@ -7498,18 +7534,6 @@ 131 | struct binary_function | ^~~~~~~~~~~~~~~ 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 { - | ^~~~~~ -In file included from ../src/rpc/command.h:240, 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*)': @@ -7535,6 +7559,18 @@ 1389 | mem_fun_ref(_Ret (_Tp::*__f)() const) | ^~~~~~~~~~~ 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 { + | ^~~~~~ +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: @@ -7585,7 +7621,7 @@ /usr/include/c++/13/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ -/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -ffile-prefix-map=/build/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-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/aarch64-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/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-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/aarch64-linux-gnu -lxmlrpc_server -lxmlrpc -lxmlrpc_xmlparse -lxmlrpc_xmltok -lxmlrpc_util libtool: link: g++ -g -O2 -ffile-prefix-map=/build/reproducible-path/rtorrent-0.9.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -DDEBUG -Wall -I/usr/include -I/usr/include/aarch64-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/aarch64-linux-gnu -lxmlrpc_server -lxmlrpc -lxmlrpc_xmlparse -lxmlrpc_xmltok -lxmlrpc_util make[3]: Leaving directory '/build/reproducible-path/rtorrent-0.9.8/test' make check-TESTS @@ -7668,7 +7704,7 @@ make[3]: Entering directory '/build/reproducible-path/rtorrent-0.9.8/src' make[4]: Entering directory '/build/reproducible-path/rtorrent-0.9.8/src' /usr/bin/mkdir -p '/build/reproducible-path/rtorrent-0.9.8/debian/rtorrent/usr/bin' - /bin/bash ../libtool --mode=install /usr/bin/install -c rtorrent '/build/reproducible-path/rtorrent-0.9.8/debian/rtorrent/usr/bin' + /bin/sh ../libtool --mode=install /usr/bin/install -c rtorrent '/build/reproducible-path/rtorrent-0.9.8/debian/rtorrent/usr/bin' libtool: install: /usr/bin/install -c rtorrent /build/reproducible-path/rtorrent-0.9.8/debian/rtorrent/usr/bin/rtorrent make[4]: Nothing to be done for 'install-data-am'. make[4]: Leaving directory '/build/reproducible-path/rtorrent-0.9.8/src' @@ -7714,12 +7750,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/3231031/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/3231031/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/1204771 and its subdirectories -I: Current time: Mon Jun 2 13:52:06 -12 2025 -I: pbuilder-time-stamp: 1748915526 +I: removing directory /srv/workspace/pbuilder/3231031 and its subdirectories +I: Current time: Wed May 1 09:33:36 +14 2024 +I: pbuilder-time-stamp: 1714505616