net-p2p/libtorrent-rasterbar
C++ library implementing a BitTorrent client
| Flavor | Version | Run | OSVersion | Arch | License | Restricted | Status | |
|---|---|---|---|---|---|---|---|---|
| 1.2.20_1,2 | 620 | 4.0 | amd64 | bsd3 | 0 | fail |
License Permissions:
Events
| Machine | Type | Time | Message |
|---|---|---|---|
| m4064b | info | 2025-11-03 18:41:07.696112 | Test Started |
| m4064b | fail | 2025-11-03 18:43:10.150846 | make build returned non-zero: 1 |
| m4064b | fail | 2025-11-03 18:43:10.267621 | Test complete. |
Log
[1m===> Building for libtorrent-rasterbar-1.2.20_1,2[0m
[ 0% 24/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/assert.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/assert.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/assert.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/assert.cpp
[ 1% 25/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/cpuid.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/cpuid.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/cpuid.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/cpuid.cpp
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/cpuid.cpp:88:47: warning: unsafe buffer access [-Wunsafe-buffer-usage]
88 | __get_cpuid(std::uint32_t(type), &info[0], &info[1], &info[2], &info[3]);
| ^~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/cpuid.cpp:88:57: warning: unsafe buffer access [-Wunsafe-buffer-usage]
88 | __get_cpuid(std::uint32_t(type), &info[0], &info[1], &info[2], &info[3]);
| ^~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/cpuid.cpp:88:67: warning: unsafe buffer access [-Wunsafe-buffer-usage]
88 | __get_cpuid(std::uint32_t(type), &info[0], &info[1], &info[2], &info[3]);
| ^~~~
3 warnings generated.
[ 1% 26/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/bandwidth_limit.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/bandwidth_limit.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/bandwidth_limit.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bandwidth_limit.cpp
[ 2% 27/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/bitfield.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/bitfield.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/bitfield.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bitfield.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bitfield.cpp:33:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:86:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
86 | return (buf()[index / 32] & aux::host_to_network(0x80000000 >> (index & 31))) != 0;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:94:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
94 | buf()[index / 32] &= aux::host_to_network(~(0x80000000 >> (index & 31)));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:100:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
100 | buf()[index / 32] |= aux::host_to_network(0x80000000 >> (index & 31));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:115:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
115 | if (b[i] != 0) return false;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:205:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
205 | ++buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:218:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
218 | --buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ~~~~~~^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:269:21: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | if (size() & 31) buf()[num_words() - 1] &= aux::host_to_network(0xffffffff << (32 - (size() & 31)));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bitfield.cpp:148:29: warning: unsafe buffer access [-Wunsafe-buffer-usage]
148 | if (old_size_words && b) buf()[old_size_words - 1] |= aux::host_to_network(0xffffffff >> b);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bitfield.cpp:150:17: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
150 | std::memset(buf() + old_size_words, 0xff
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bitfield.cpp:157:17: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
157 | std::memset(buf() + old_size_words, 0x00
| ^~~~~
12 warnings generated.
[ 2% 28/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/crc32c.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/crc32c.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/crc32c.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/crc32c.cpp
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/crc32c.cpp:101:12: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
101 | : "r"(buf+i), "0"(ret));
| ^~~
1 warning generated.
[ 3% 29/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/bandwidth_queue_entry.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/bandwidth_queue_entry.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/bandwidth_queue_entry.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bandwidth_queue_entry.cpp
[ 3% 30/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/close_reason.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/close_reason.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/close_reason.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/close_reason.cpp
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/close_reason.cpp:134:4: warning: 'switch' missing 'default' label [-Wswitch-default]
134 | switch (ec.value())
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/close_reason.cpp:142:4: warning: 'switch' missing 'default' label [-Wswitch-default]
142 | switch (ec.value())
| ^
2 warnings generated.
[ 4% 31/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/disk_buffer_holder.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/disk_buffer_holder.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/disk_buffer_holder.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_buffer_holder.cpp
[ 5% 32/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/bandwidth_manager.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/bandwidth_manager.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/bandwidth_manager.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bandwidth_manager.cpp
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bandwidth_manager.cpp:114:8: warning: unsafe buffer access [-Wunsafe-buffer-usage]
114 | if (chan[i]->need_queueing(blk))
| ^~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bandwidth_manager.cpp:115:24: warning: unsafe buffer access [-Wunsafe-buffer-usage]
115 | bwr.channel[k++] = chan[i];
| ^~~~
2 warnings generated.
[ 5% 33/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/bdecode.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/bdecode.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/bdecode.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:325:4: warning: 'switch' missing 'default' label [-Wswitch-default]
325 | switch (tokens[token].type)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:798:3: warning: use of function '__builtin_alloca' is discouraged; there is no way to check for failure but failure may still occur, resulting in a possibly exploitable security vulnerability [-Walloca]
798 | TORRENT_ALLOCA(stack, stack_frame, depth_limit);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:109:46: note: expanded from macro 'TORRENT_ALLOCA'
109 | auto* TORRENT_ALLOCA_tmp = static_cast(TORRENT_ALLOCA_FUN(sizeof(t) * static_cast(TORRENT_ALLOCA_size))); \
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:94:28: note: expanded from macro 'TORRENT_ALLOCA_FUN'
94 | #define TORRENT_ALLOCA_FUN alloca
| ^
/usr/include/stdlib.h:258:20: note: expanded from macro 'alloca'
258 | #define alloca(sz) __builtin_alloca(sz)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:1011:3: warning: 'switch' missing 'default' label [-Wswitch-default]
1011 | switch (e.type())
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:1109:3: warning: 'switch' missing 'default' label [-Wswitch-default]
1109 | switch (e.type())
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bdecode.hpp:46:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:131:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
131 | T* end() const noexcept { return m_ptr + m_len; }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:168:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
168 | return m_ptr[idx];
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:34:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:50:29: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
50 | for (; current != last; ++current) {
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:54:30: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
54 | for (; first != current; ++first) {
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:72:6: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
72 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:88:6: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
88 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:122:10: warning: unsafe buffer access [-Wunsafe-buffer-usage]
122 | return (&t)[1].offset - t.offset;
| ^~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:132:8: warning: unsafe buffer access [-Wunsafe-buffer-usage]
132 | if (str[i] >= 32 && str[i] < 127)
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:132:24: warning: unsafe buffer access [-Wunsafe-buffer-usage]
132 | if (str[i] >= 32 && str[i] < 127)
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:134:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
134 | ret += str[i];
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:139:61: warning: unsafe buffer access [-Wunsafe-buffer-usage]
139 | std::snprintf(tmp, sizeof(tmp), "\\x%02x", std::uint8_t(str[i]));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:181:6: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
181 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:216:10: warning: unsafe buffer access [-Wunsafe-buffer-usage]
216 | return msgs[ev];
| ^~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:325:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
325 | switch (tokens[token].type)
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:328:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
328 | if (m_buffer[tokens[token].offset + 1] == '0'
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:328:18: warning: unsafe buffer access [-Wunsafe-buffer-usage]
328 | if (m_buffer[tokens[token].offset + 1] == '0'
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:329:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
329 | && m_buffer[tokens[token].offset + 2] != 'e')
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:329:18: warning: unsafe buffer access [-Wunsafe-buffer-usage]
329 | && m_buffer[tokens[token].offset + 2] != 'e')
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:337:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
337 | if (m_buffer[tokens[token].offset] == '0'
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:337:18: warning: unsafe buffer access [-Wunsafe-buffer-usage]
337 | if (m_buffer[tokens[token].offset] == '0'
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:338:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
338 | && m_buffer[tokens[token].offset + 1] != ':')
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:338:18: warning: unsafe buffer access [-Wunsafe-buffer-usage]
338 | && m_buffer[tokens[token].offset + 1] != ':')
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:351:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
351 | if (tokens[parent].type == bdecode_token::dict
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:360:27: warning: unsafe buffer access [-Wunsafe-buffer-usage]
360 | int const v1 = k1 + tokens[k1].next_item;
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:362:27: warning: unsafe buffer access [-Wunsafe-buffer-usage]
362 | int const k2 = v1 + tokens[v1].next_item;
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:368:27: warning: unsafe buffer access [-Wunsafe-buffer-usage]
368 | int const v2 = k2 + tokens[k2].next_item;
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:370:28: warning: unsafe buffer access [-Wunsafe-buffer-usage]
370 | int const k1_start = tokens[k1].offset + tokens[k1].start_offset();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:370:48: warning: unsafe buffer access [-Wunsafe-buffer-usage]
370 | int const k1_start = tokens[k1].offset + tokens[k1].start_offset();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:371:26: warning: unsafe buffer access [-Wunsafe-buffer-usage]
371 | int const k1_len = tokens[v1].offset - k1_start;
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:372:28: warning: unsafe buffer access [-Wunsafe-buffer-usage]
372 | int const k2_start = tokens[k2].offset + tokens[k2].start_offset();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:372:48: warning: unsafe buffer access [-Wunsafe-buffer-usage]
372 | int const k2_start = tokens[k2].offset + tokens[k2].start_offset();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:373:26: warning: unsafe buffer access [-Wunsafe-buffer-usage]
373 | int const k2_len = tokens[v2].offset - k2_start;
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:377:29: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
377 | int cmp = std::memcmp(m_buffer + k1_start, m_buffer + k2_start, std::size_t(min_len));
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:377:50: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
377 | int cmp = std::memcmp(m_buffer + k1_start, m_buffer + k2_start, std::size_t(min_len));
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:403:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
403 | if (m_root_tokens[m_token_idx].type == bdecode_token::long_string)
| ^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:405:44: warning: unsafe buffer access [-Wunsafe-buffer-usage]
405 | return static_cast(m_root_tokens[m_token_idx].type);
| ^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:416:28: warning: unsafe buffer access [-Wunsafe-buffer-usage]
416 | bdecode_token const& t = m_root_tokens[m_token_idx];
| ^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:417:31: warning: unsafe buffer access [-Wunsafe-buffer-usage]
417 | bdecode_token const& next = m_root_tokens[m_token_idx + t.next_item];
| ^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:418:11: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
418 | return {m_buffer + t.offset, static_cast(next.offset - t.offset)};
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:442:13: warning: unsafe buffer access [-Wunsafe-buffer-usage]
442 | token += tokens[token].next_item;
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:491:10: warning: unsafe buffer access [-Wunsafe-buffer-usage]
491 | while (tokens[token].type != bdecode_token::end)
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:493:13: warning: unsafe buffer access [-Wunsafe-buffer-usage]
493 | token += tokens[token].next_item;
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:526:13: warning: unsafe buffer access [-Wunsafe-buffer-usage]
526 | token += tokens[token].next_item;
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:530:13: warning: unsafe buffer access [-Wunsafe-buffer-usage]
530 | token += tokens[token].next_item;
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:545:29: warning: unsafe buffer access [-Wunsafe-buffer-usage]
545 | int value_token = token + tokens[token].next_item;
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:573:10: warning: unsafe buffer access [-Wunsafe-buffer-usage]
573 | while (tokens[token].type != bdecode_token::end)
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:575:13: warning: unsafe buffer access [-Wunsafe-buffer-usage]
575 | token += tokens[token].next_item;
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:600:10: warning: unsafe buffer access [-Wunsafe-buffer-usage]
600 | while (tokens[token].type != bdecode_token::end)
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:602:29: warning: unsafe buffer access [-Wunsafe-buffer-usage]
602 | bdecode_token const& t = tokens[token];
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:607:35: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
607 | && std::equal(key.data(), key.data() + size, m_buffer
| ~~~~^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:608:6: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
607 | && std::equal(key.data(), key.data() + size, m_buffer
| ~~~~~~~~
608 | + t.offset + t.start_offset()))
| ^~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:607:50: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
607 | && std::equal(key.data(), key.data() + size, m_buffer
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:622:13: warning: unsafe buffer access [-Wunsafe-buffer-usage]
622 | token += tokens[token].next_item;
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:679:28: warning: unsafe buffer access [-Wunsafe-buffer-usage]
679 | bdecode_token const& t = m_root_tokens[m_token_idx];
| ^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:684:30: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
684 | char const* ptr = m_buffer + t.offset + 1;
| ~~~~~~~~~^~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:684:21: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
684 | char const* ptr = m_buffer + t.offset + 1;
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:688:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
688 | char const* end = parse_int(ptr + int(negative)
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:689:6: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
689 | , ptr + size, 'e', val, ec);
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:700:28: warning: unsafe buffer access [-Wunsafe-buffer-usage]
700 | bdecode_token const& t = m_root_tokens[m_token_idx];
| ^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:705:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
705 | return string_view(m_buffer + t.offset + t.start_offset(), size);
| ~~~~~~~~~^~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:705:22: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
705 | return string_view(m_buffer + t.offset + t.start_offset(), size);
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:711:28: warning: unsafe buffer access [-Wunsafe-buffer-usage]
711 | bdecode_token const& t = m_root_tokens[m_token_idx];
| ^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:714:19: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
714 | return m_buffer + t.offset + t.start_offset();
| ~~~~~~~~~^~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:714:10: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
714 | return m_buffer + t.offset + t.start_offset();
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:720:28: warning: unsafe buffer access [-Wunsafe-buffer-usage]
720 | bdecode_token const& t = m_root_tokens[m_token_idx];
| ^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:802:21: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
802 | char const* end = start + buffer.size();
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:846:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
846 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:854:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
854 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:861:28: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
861 | start = check_integer(start + 1, end, e);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:876:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
876 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:910:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
910 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:922:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
922 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:939:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
939 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:954:6: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
954 | start += len;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:1076:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
1076 | ret.append(str.data() + len - 14, 14);
| ~~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:1076:20: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
1076 | ret.append(str.data() + len - 14, 14);
| ~~~~^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:1087:42: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
1087 | detail::escape_string(ret, str.data() + len - 9, 9);
| ~~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:1087:35: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
1087 | detail::escape_string(ret, str.data() + len - 9, 9);
| ~~~~^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:1107:36: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1107 | if (indent < 197 && indent >= 0) indent_str[indent + 2] = 0;
| ^~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:1128:28: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
1128 | if (!one_liner) ret += indent_str + 1;
| ^~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:1134:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
1134 | else ret += (one_liner ? " " : indent_str + 1);
| ^~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:1144:28: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
1144 | if (!one_liner) ret += indent_str + 1;
| ^~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bdecode.cpp:1153:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
1153 | else ret += (one_liner ? " " : indent_str + 1);
| ^~~~~~~~~~
87 warnings generated.
[ 6% 34/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/bloom_filter.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/bloom_filter.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/bloom_filter.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bloom_filter.cpp
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bloom_filter.cpp:40:61: warning: unsafe buffer access [-Wunsafe-buffer-usage]
40 | std::uint32_t idx1 = std::uint32_t(k[0]) | (std::uint32_t(k[1]) << 8);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bloom_filter.cpp:41:38: warning: unsafe buffer access [-Wunsafe-buffer-usage]
41 | std::uint32_t idx2 = std::uint32_t(k[2]) | (std::uint32_t(k[3]) << 8);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bloom_filter.cpp:41:61: warning: unsafe buffer access [-Wunsafe-buffer-usage]
41 | std::uint32_t idx2 = std::uint32_t(k[2]) | (std::uint32_t(k[3]) << 8);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bloom_filter.cpp:44:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
44 | return (bits[idx1 / 8] & (1 << (idx1 & 7))) != 0
| ^~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bloom_filter.cpp:45:8: warning: unsafe buffer access [-Wunsafe-buffer-usage]
45 | && (bits[idx2 / 8] & (1 << (idx2 & 7))) != 0;
| ^~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bloom_filter.cpp:50:61: warning: unsafe buffer access [-Wunsafe-buffer-usage]
50 | std::uint32_t idx1 = std::uint32_t(k[0]) | (std::uint32_t(k[1]) << 8);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bloom_filter.cpp:51:38: warning: unsafe buffer access [-Wunsafe-buffer-usage]
51 | std::uint32_t idx2 = std::uint32_t(k[2]) | (std::uint32_t(k[3]) << 8);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bloom_filter.cpp:51:61: warning: unsafe buffer access [-Wunsafe-buffer-usage]
51 | std::uint32_t idx2 = std::uint32_t(k[2]) | (std::uint32_t(k[3]) << 8);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bloom_filter.cpp:54:3: warning: unsafe buffer access [-Wunsafe-buffer-usage]
54 | bits[idx1 / 8] |= (1 << (idx1 & 7));
| ^~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bloom_filter.cpp:55:3: warning: unsafe buffer access [-Wunsafe-buffer-usage]
55 | bits[idx2 / 8] |= (1 << (idx2 & 7));
| ^~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bloom_filter.cpp:71:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
71 | ret += bitcount[bits[i] & 0xf];
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bloom_filter.cpp:71:20: warning: unsafe buffer access [-Wunsafe-buffer-usage]
71 | ret += bitcount[bits[i] & 0xf];
| ^~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bloom_filter.cpp:72:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
72 | ret += bitcount[(bits[i] >> 4) & 0xf];
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bloom_filter.cpp:72:21: warning: unsafe buffer access [-Wunsafe-buffer-usage]
72 | ret += bitcount[(bits[i] >> 4) & 0xf];
| ^~~~
14 warnings generated.
[ 6% 35/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/chained_buffer.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/chained_buffer.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/chained_buffer.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/chained_buffer.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/chained_buffer.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/chained_buffer.hpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/block_cache_reference.hpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/storage_defs.hpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/sha1_hash.hpp:49:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/ffs.hpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:131:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
131 | T* end() const noexcept { return m_ptr + m_len; }
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/chained_buffer.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/chained_buffer.hpp:40:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:107:45: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
107 | std::copy(initialize.begin(), initialize.begin()
| ~~~~~~~~~~~^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:142:76: warning: unsafe buffer access [-Wunsafe-buffer-usage]
142 | char& operator[](index_type const i) { TORRENT_ASSERT(i < size()); return m_begin[i]; }
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:143:93: warning: unsafe buffer access [-Wunsafe-buffer-usage]
143 | char const& operator[](difference_type const i) const { TORRENT_ASSERT(i < size()); return m_begin[i]; }
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:147:23: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
147 | char* end() { return m_begin + m_size; }
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:148:35: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
148 | char const* end() const { return m_begin + m_size; }
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/chained_buffer.cpp:50:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
50 | b.buf += bytes_to_pop;
| ~~^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/chained_buffer.cpp:107:24: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
107 | char* const insert = b.buf + b.used_size;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/chained_buffer.cpp:108:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
108 | if (insert + s > b.buf + b.size) return nullptr;
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/chained_buffer.cpp:108:20: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
108 | if (insert + s > b.buf + b.size) return nullptr;
| ^~~~~
10 warnings generated.
[ 7% 36/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/disk_job_fence.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/disk_job_fence.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/disk_job_fence.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_job_fence.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_job_fence.cpp:35:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/disk_io_job.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/disk_interface.hpp:49:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
1 warning generated.
[ 7% 37/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/ffs.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/ffs.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/ffs.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/ffs.cpp
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/ffs.cpp:65:10: warning: unsafe buffer access [-Wunsafe-buffer-usage]
65 | return MultiplyDeBruijnBitPosition[std::uint32_t(v * 0x07C4ACDDU) >> 27];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/ffs.cpp:78:8: warning: unsafe buffer access [-Wunsafe-buffer-usage]
78 | if (ptr[i] == 0) continue;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/ffs.cpp:79:53: warning: unsafe buffer access [-Wunsafe-buffer-usage]
79 | return i * 32 + 31 - log2p1(aux::network_to_host(ptr[i]));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/ffs.cpp:95:8: warning: unsafe buffer access [-Wunsafe-buffer-usage]
95 | if (ptr[i] == 0) continue;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/ffs.cpp:98:49: warning: unsafe buffer access [-Wunsafe-buffer-usage]
98 | std::uint32_t const v = aux::network_to_host(ptr[i]);
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/ffs.cpp:133:8: warning: unsafe buffer access [-Wunsafe-buffer-usage]
133 | if (ptr[i] == 0xffffffff) continue;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/ffs.cpp:134:44: warning: unsafe buffer access [-Wunsafe-buffer-usage]
134 | std::uint32_t v = ~aux::network_to_host(ptr[i]);
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/ffs.cpp:156:8: warning: unsafe buffer access [-Wunsafe-buffer-usage]
156 | if (ptr[i] == 0xffffffff) continue;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/ffs.cpp:159:50: warning: unsafe buffer access [-Wunsafe-buffer-usage]
159 | std::uint32_t const v = ~aux::network_to_host(ptr[i]);
| ^~~
9 warnings generated.
[ 8% 38/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/error_code.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/error_code.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/error_code.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/error_code.cpp
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/error_code.cpp:279:10: warning: unsafe buffer access [-Wunsafe-buffer-usage]
279 | return msgs[ev];
| ^~~~
1 warning generated.
[ 9% 39/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/disk_io_job.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/disk_io_job.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/disk_io_job.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_job.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_job.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/disk_io_job.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/disk_interface.hpp:49:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_job.cpp:111:42: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
111 | constexpr disk_job_flags_t disk_io_job::fence;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_job.cpp:112:42: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
112 | constexpr disk_job_flags_t disk_io_job::in_progress;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_job.cpp:113:42: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
113 | constexpr disk_job_flags_t disk_io_job::aborted;
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_job.cpp:34:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/block_cache.hpp:381:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
381 | { return m_lru[cached_piece_entry::write_lru].iterate(); }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/block_cache.hpp:383:45: warning: unsafe buffer access [-Wunsafe-buffer-usage]
383 | int num_write_lru_pieces() const { return m_lru[cached_piece_entry::write_lru].size(); }
| ^~~~~
6 warnings generated.
[ 9% 40/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/escape_string.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/escape_string.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/escape_string.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/escape_string.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/escape_string.cpp:58:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/escape_string.hpp:40:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/escape_string.cpp:73:44: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
73 | for (auto i = s.begin(); i != s.end(); ++i)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/escape_string.cpp:85:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
85 | ++i;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/escape_string.cpp:102:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
102 | ++i;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/escape_string.cpp:153:20: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
153 | if (std::strchr(unreserved_chars + offset, *str) && *str != 0)
| ^~~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/escape_string.cpp:160:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
160 | ret += aux::hex_chars[std::uint8_t(*str) >> 4];
| ^~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/escape_string.cpp:161:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
161 | ret += aux::hex_chars[std::uint8_t(*str) & 15];
| ^~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/escape_string.cpp:163:6: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
163 | ++str;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/escape_string.cpp:186:6: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
186 | ++str;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/escape_string.cpp:212:6: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
212 | ++str;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/escape_string.cpp:215:41: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
215 | while (str != end && *str == delim) ++str;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/escape_string.cpp:326:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
326 | ret += base64_table[outbuf[j]];
| ^~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/escape_string.cpp:371:17: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
371 | std::copy(i, i + available_input, inbuf.begin());
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/escape_string.cpp:372:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
372 | i += available_input;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/escape_string.cpp:388:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
388 | ret += base32_table[outbuf[j]];
| ^~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/escape_string.cpp:421:40: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
421 | char const in = char(std::toupper(*i++));
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/escape_string.cpp:453:18: warning: unsafe buffer access [-Wunsafe-buffer-usage]
453 | int num_out = input_output_mapping[pad_start];
| ^~~~~~~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/escape_string.cpp:456:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
456 | std::copy(outbuf.begin(), outbuf.begin() + num_out, std::back_inserter(ret));
| ~~~~~~~^~~~~~~
18 warnings generated.
[ 10% 41/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/announce_entry.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/announce_entry.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/announce_entry.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/announce_entry.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/announce_entry.cpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_settings.hpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/settings_pack.hpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
1 warning generated.
[ 10% 42/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/disk_job_pool.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/disk_job_pool.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/disk_job_pool.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_job_pool.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_job_pool.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/disk_job_pool.hpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/disk_io_job.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/disk_interface.hpp:49:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_job_pool.cpp:95:30: warning: unsafe buffer access [-Wunsafe-buffer-usage]
95 | job_action_t const type = j[i]->action;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_job_pool.cpp:96:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
96 | j[i]->~disk_io_job();
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_job_pool.cpp:106:20: warning: unsafe buffer access [-Wunsafe-buffer-usage]
106 | m_job_pool.free(j[i]);
| ^
4 warnings generated.
[ 11% 43/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/disk_buffer_pool.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/disk_buffer_pool.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/disk_buffer_pool.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_buffer_pool.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_buffer_pool.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/disk_buffer_pool.hpp:48:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/storage_utils.hpp:45:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session_types.hpp:37:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_buffer_pool.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/disk_buffer_pool.hpp:47:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:131:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
131 | T* end() const noexcept { return m_ptr + m_len; }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:131:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
131 | T* end() const noexcept { return m_ptr + m_len; }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:131:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
131 | T* end() const noexcept { return m_ptr + m_len; }
| ^~~~~
4 warnings generated.
[ 11% 44/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/entry.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/entry.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/entry.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/entry.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/entry.cpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bencode.hpp:142:4: warning: 'switch' missing 'default' label [-Wswitch-default]
142 | switch(e.type())
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/entry.cpp:139:3: warning: 'switch' missing 'default' label [-Wswitch-default]
139 | switch (t)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/entry.cpp:363:3: warning: 'switch' missing 'default' label [-Wswitch-default]
363 | switch (e.type())
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/entry.cpp:402:3: warning: 'switch' missing 'default' label [-Wswitch-default]
402 | switch (e.type())
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/entry.cpp:496:3: warning: 'switch' missing 'default' label [-Wswitch-default]
496 | switch (lhs.type())
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/entry.cpp:516:3: warning: 'switch' missing 'default' label [-Wswitch-default]
516 | switch (t)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/entry.cpp:544:3: warning: 'switch' missing 'default' label [-Wswitch-default]
544 | switch (e.type())
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/entry.cpp:687:3: warning: 'switch' missing 'default' label [-Wswitch-default]
687 | switch (e.type())
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/entry.cpp:35:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/lazy_entry.hpp:47:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bdecode.hpp:46:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:136:64: warning: unsafe buffer access [-Wunsafe-buffer-usage]
136 | T& back() const noexcept { TORRENT_ASSERT(m_len > 0); return m_ptr[m_len - 1]; }
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/entry.cpp:35:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/lazy_entry.hpp:171:14: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
171 | m_begin = start - 1; // include 'i'
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/lazy_entry.hpp:195:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
195 | const_cast(m_data.start)[m_size] = 0;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/lazy_entry.hpp:297:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
297 | return &m_data.list[i+1];
| ^~~~~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/entry.cpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bencode.hpp:61:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:176:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
176 | start += str.size();
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/entry.cpp:58:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
58 | *ptr-- = '\0';
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/entry.cpp:59:18: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
59 | if (val == 0) *ptr-- = '0';
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/entry.cpp:60:20: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
60 | while (ptr > buf.data() + sign && val != 0)
| ~~~~^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/entry.cpp:62:5: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
62 | *ptr-- = '0' + char(val % 10);
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/entry.cpp:65:14: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
65 | if (sign) *ptr-- = '-';
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/entry.cpp:66:5: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
66 | ++ptr;
| ^~~
19 warnings generated.
[ 12% 45/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/fingerprint.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/fingerprint.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/fingerprint.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/fingerprint.cpp
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/fingerprint.cpp:90:3: warning: unsafe buffer access [-Wunsafe-buffer-usage]
90 | name[1] = id_string[1];
| ^~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/fingerprint.cpp:90:13: warning: unsafe buffer access [-Wunsafe-buffer-usage]
90 | name[1] = id_string[1];
| ^~~~~~~~~
2 warnings generated.
[ 13% 46/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/alert_manager.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/alert_manager.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/alert_manager.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert_manager.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert_manager.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_manager.hpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert.hpp:66:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert_manager.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_manager.hpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:75:26: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
75 | char* ptr = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:77:59: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
77 | std::size_t const pad_bytes = aux::calculate_pad_bytes(ptr + sizeof(header_t), alignof(U));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:99:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
99 | ptr += sizeof(header_t) + pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:101:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
101 | + aux::calculate_pad_bytes(ptr + sizeof(U), alignof(header_t)));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:123:38: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
123 | char const* const end = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:127:5: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
127 | ptr += sizeof(header_t) + hdr->pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:130:5: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
130 | ptr += hdr->len;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:148:38: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
148 | char const* const end = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:152:5: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
152 | ptr += sizeof(header_t) + hdr->pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:156:5: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
156 | ptr += hdr->len;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:172:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
172 | ptr += sizeof(header_t) + hdr->pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:214:38: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
214 | char const* const end = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:219:5: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
219 | src += sizeof(header_t) + src_hdr->pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:220:5: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
220 | dst += sizeof(header_t) + src_hdr->pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:226:5: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
226 | src += len ;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:227:5: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
227 | dst += len;
| ^~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert_manager.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_manager.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_types.hpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_handle.hpp:59:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_info.hpp:40:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:86:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
86 | return (buf()[index / 32] & aux::host_to_network(0x80000000 >> (index & 31))) != 0;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:94:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
94 | buf()[index / 32] &= aux::host_to_network(~(0x80000000 >> (index & 31)));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:100:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
100 | buf()[index / 32] |= aux::host_to_network(0x80000000 >> (index & 31));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:115:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
115 | if (b[i] != 0) return false;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:205:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
205 | ++buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:218:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
218 | --buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ~~~~~~^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:269:21: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | if (size() & 31) buf()[num_words() - 1] &= aux::host_to_network(0xffffffff << (32 - (size() & 31)));
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert_manager.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_manager.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_types.hpp:43:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:18: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:118:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
118 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:124:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
124 | m_stat[download_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:125:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
125 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:133:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
133 | m_stat[download_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:134:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
134 | m_stat[download_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:142:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
142 | m_stat[upload_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:143:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
143 | m_stat[upload_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:158:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
158 | m_stat[download_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:159:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
159 | m_stat[upload_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:162:43: warning: unsafe buffer access [-Wunsafe-buffer-usage]
162 | int upload_ip_overhead() const { return m_stat[upload_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:163:45: warning: unsafe buffer access [-Wunsafe-buffer-usage]
163 | int download_ip_overhead() const { return m_stat[download_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:169:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
169 | m_stat[i].second_tick(tick_interval_ms);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:174:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
174 | return m_stat[upload_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:175:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
175 | + m_stat[upload_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:176:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
176 | + m_stat[upload_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:181:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
181 | return m_stat[download_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:182:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
182 | + m_stat[download_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:183:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
183 | + m_stat[download_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:188:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
188 | return m_stat[upload_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:189:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
189 | + m_stat[upload_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:190:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
190 | + m_stat[upload_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:195:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
195 | return m_stat[download_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:196:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
196 | + m_stat[download_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:197:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
197 | + m_stat[download_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:202:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
202 | return m_stat[upload_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:203:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
203 | + m_stat[upload_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:204:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
204 | + m_stat[upload_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:209:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
209 | return m_stat[download_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:210:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
210 | + m_stat[download_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:211:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
211 | + m_stat[download_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:215:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
215 | { return m_stat[upload_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:217:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
217 | { return m_stat[download_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:220:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
220 | { return m_stat[upload_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:222:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
222 | { return m_stat[download_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:225:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
225 | { return m_stat[upload_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:227:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
227 | { return m_stat[download_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:230:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
230 | { return m_stat[channel].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:232:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
232 | { return m_stat[channel].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:239:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
239 | m_stat[download_payload].offset(downloaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:240:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
240 | m_stat[upload_payload].offset(uploaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:244:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
244 | { return m_stat[download_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:246:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
246 | { return m_stat[upload_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:248:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
248 | { return m_stat[download_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:250:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
250 | { return m_stat[upload_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:269:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | m_stat[i].clear();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:275:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
275 | return m_stat[i];
| ^~~~~~
74 warnings generated.
[ 13% 47/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/disk_io_thread_pool.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/disk_io_thread_pool.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/disk_io_thread_pool.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_thread_pool.cpp
[ 14% 48/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/file.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/file.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/file.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/file.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/file.cpp:86:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/file.hpp:43:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/storage_utils.hpp:45:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session_types.hpp:37:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/file.cpp:608:6: warning: unsafe buffer access [-Wunsafe-buffer-usage]
608 | , mode_array[static_cast(mode & open_mode::rw_mask)] | open_mode
| ^~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/file.cpp:780:38: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
780 | std::copy(buf.begin(), buf.end(), dst + offset);
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/file.cpp:790:14: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
790 | std::copy(src + offset, src + offset + buf.size(), buf.data());
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/file.cpp:790:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
790 | std::copy(src + offset, src + offset + buf.size(), buf.data());
| ~~~~^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/file.cpp:790:28: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
790 | std::copy(src + offset, src + offset + buf.size(), buf.data());
| ^~~
6 warnings generated.
[ 14% 49/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/gzip.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/gzip.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/gzip.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/gzip.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/gzip.cpp:35:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/gzip.hpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:153:13: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
153 | return { data() + offset, size() - offset };
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:153:13: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
153 | return { data() + offset, size() - offset };
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:168:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
168 | return m_ptr[idx];
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/gzip.cpp:94:10: warning: unsafe buffer access [-Wunsafe-buffer-usage]
94 | return msgs[ev];
| ^~~~
4 warnings generated.
[ 15% 50/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/hex.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/hex.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/hex.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/hex.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/hex.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/hex.hpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:131:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
131 | T* end() const noexcept { return m_ptr + m_len; }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/hex.cpp:59:57: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
59 | for (auto i = in.begin(), end = in.end(); i != end; ++i, ++out)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/hex.cpp:59:62: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
59 | for (auto i = in.begin(), end = in.end(); i != end; ++i, ++out)
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/hex.cpp:64:6: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
64 | ++i;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/hex.cpp:80:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
80 | out[idx++] = hex_chars[std::uint8_t(in[i]) >> 4];
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/hex.cpp:80:17: warning: unsafe buffer access [-Wunsafe-buffer-usage]
80 | out[idx++] = hex_chars[std::uint8_t(in[i]) >> 4];
| ^~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/hex.cpp:80:40: warning: unsafe buffer access [-Wunsafe-buffer-usage]
80 | out[idx++] = hex_chars[std::uint8_t(in[i]) >> 4];
| ^~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/hex.cpp:81:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
81 | out[idx++] = hex_chars[std::uint8_t(in[i]) & 0xf];
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/hex.cpp:81:17: warning: unsafe buffer access [-Wunsafe-buffer-usage]
81 | out[idx++] = hex_chars[std::uint8_t(in[i]) & 0xf];
| ^~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/hex.cpp:81:40: warning: unsafe buffer access [-Wunsafe-buffer-usage]
81 | out[idx++] = hex_chars[std::uint8_t(in[i]) & 0xf];
| ^~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/hex.cpp:99:3: warning: unsafe buffer access [-Wunsafe-buffer-usage]
99 | out[in.size() * 2] = '\0';
| ^~~
11 warnings generated.
[ 15% 51/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/generate_peer_id.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/generate_peer_id.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/generate_peer_id.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/generate_peer_id.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/generate_peer_id.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_settings.hpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/settings_pack.hpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/generate_peer_id.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/generate_peer_id.hpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_id.hpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/sha1_hash.hpp:49:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/ffs.hpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:153:13: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
153 | return { data() + offset, size() - offset };
| ^~~~~~
2 warnings generated.
[ 16% 52/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/file_pool.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/file_pool.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/file_pool.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/file_pool.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/file_pool.cpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/file_pool.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/file.hpp:43:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/storage_utils.hpp:45:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session_types.hpp:37:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
1 warning generated.
[ 17% 53/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/add_torrent_params.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/add_torrent_params.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/add_torrent_params.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/add_torrent_params.hpp:49:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_flags.hpp:39:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:47:4: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
47 | DECL_FLAG(seed_mode);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:45:48: note: expanded from macro 'DECL_FLAG'
45 | constexpr torrent_flags_t add_torrent_params::flag_##name
| ^
:271:1: note: expanded from here
271 | flag_seed_mode
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:48:4: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
48 | DECL_FLAG(upload_mode);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:45:48: note: expanded from macro 'DECL_FLAG'
45 | constexpr torrent_flags_t add_torrent_params::flag_##name
| ^
:272:1: note: expanded from here
272 | flag_upload_mode
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:49:4: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
49 | DECL_FLAG(share_mode);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:45:48: note: expanded from macro 'DECL_FLAG'
45 | constexpr torrent_flags_t add_torrent_params::flag_##name
| ^
:273:1: note: expanded from here
273 | flag_share_mode
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:50:4: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
50 | DECL_FLAG(apply_ip_filter);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:45:48: note: expanded from macro 'DECL_FLAG'
45 | constexpr torrent_flags_t add_torrent_params::flag_##name
| ^
:274:1: note: expanded from here
274 | flag_apply_ip_filter
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:51:4: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
51 | DECL_FLAG(paused);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:45:48: note: expanded from macro 'DECL_FLAG'
45 | constexpr torrent_flags_t add_torrent_params::flag_##name
| ^
:275:1: note: expanded from here
275 | flag_paused
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:52:4: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
52 | DECL_FLAG(auto_managed);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:45:48: note: expanded from macro 'DECL_FLAG'
45 | constexpr torrent_flags_t add_torrent_params::flag_##name
| ^
:276:1: note: expanded from here
276 | flag_auto_managed
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:53:4: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
53 | DECL_FLAG(duplicate_is_error);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:45:48: note: expanded from macro 'DECL_FLAG'
45 | constexpr torrent_flags_t add_torrent_params::flag_##name
| ^
:277:1: note: expanded from here
277 | flag_duplicate_is_error
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:54:4: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
54 | DECL_FLAG(update_subscribe);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:45:48: note: expanded from macro 'DECL_FLAG'
45 | constexpr torrent_flags_t add_torrent_params::flag_##name
| ^
:278:1: note: expanded from here
278 | flag_update_subscribe
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:55:4: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
55 | DECL_FLAG(super_seeding);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:45:48: note: expanded from macro 'DECL_FLAG'
45 | constexpr torrent_flags_t add_torrent_params::flag_##name
| ^
:279:1: note: expanded from here
279 | flag_super_seeding
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:56:4: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
56 | DECL_FLAG(sequential_download);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:45:48: note: expanded from macro 'DECL_FLAG'
45 | constexpr torrent_flags_t add_torrent_params::flag_##name
| ^
:280:1: note: expanded from here
280 | flag_sequential_download
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:57:4: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
57 | DECL_FLAG(pinned);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:45:48: note: expanded from macro 'DECL_FLAG'
45 | constexpr torrent_flags_t add_torrent_params::flag_##name
| ^
:281:1: note: expanded from here
281 | flag_pinned
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:58:4: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
58 | DECL_FLAG(stop_when_ready);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:45:48: note: expanded from macro 'DECL_FLAG'
45 | constexpr torrent_flags_t add_torrent_params::flag_##name
| ^
:282:1: note: expanded from here
282 | flag_stop_when_ready
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:59:4: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
59 | DECL_FLAG(override_trackers);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:45:48: note: expanded from macro 'DECL_FLAG'
45 | constexpr torrent_flags_t add_torrent_params::flag_##name
| ^
:283:1: note: expanded from here
283 | flag_override_trackers
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:60:4: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
60 | DECL_FLAG(override_web_seeds);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:45:48: note: expanded from macro 'DECL_FLAG'
45 | constexpr torrent_flags_t add_torrent_params::flag_##name
| ^
:284:1: note: expanded from here
284 | flag_override_web_seeds
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:61:4: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
61 | DECL_FLAG(need_save_resume);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:45:48: note: expanded from macro 'DECL_FLAG'
45 | constexpr torrent_flags_t add_torrent_params::flag_##name
| ^
:285:1: note: expanded from here
285 | flag_need_save_resume
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:62:4: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
62 | DECL_FLAG(override_resume_data);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:45:48: note: expanded from macro 'DECL_FLAG'
45 | constexpr torrent_flags_t add_torrent_params::flag_##name
| ^
:286:1: note: expanded from here
286 | flag_override_resume_data
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:63:4: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
63 | DECL_FLAG(merge_resume_trackers);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:45:48: note: expanded from macro 'DECL_FLAG'
45 | constexpr torrent_flags_t add_torrent_params::flag_##name
| ^
:287:1: note: expanded from here
287 | flag_merge_resume_trackers
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:64:4: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
64 | DECL_FLAG(use_resume_save_path);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:45:48: note: expanded from macro 'DECL_FLAG'
45 | constexpr torrent_flags_t add_torrent_params::flag_##name
| ^
:288:1: note: expanded from here
288 | flag_use_resume_save_path
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:65:4: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
65 | DECL_FLAG(merge_resume_http_seeds);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:45:48: note: expanded from macro 'DECL_FLAG'
45 | constexpr torrent_flags_t add_torrent_params::flag_##name
| ^
:289:1: note: expanded from here
289 | flag_merge_resume_http_seeds
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:66:4: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
66 | DECL_FLAG(default_flags);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:45:48: note: expanded from macro 'DECL_FLAG'
45 | constexpr torrent_flags_t add_torrent_params::flag_##name
| ^
:290:1: note: expanded from here
290 | flag_default_flags
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/add_torrent_params.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/add_torrent_params.hpp:46:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:86:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
86 | return (buf()[index / 32] & aux::host_to_network(0x80000000 >> (index & 31))) != 0;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:94:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
94 | buf()[index / 32] &= aux::host_to_network(~(0x80000000 >> (index & 31)));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:100:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
100 | buf()[index / 32] |= aux::host_to_network(0x80000000 >> (index & 31));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:115:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
115 | if (b[i] != 0) return false;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:205:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
205 | ++buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:218:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
218 | --buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ~~~~~~^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:269:21: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | if (size() & 31) buf()[num_words() - 1] &= aux::host_to_network(0xffffffff << (32 - (size() & 31)));
| ^~~~~
30 warnings generated.
[ 17% 54/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/block_cache.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/block_cache.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/block_cache.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/block_cache.hpp:52:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/disk_buffer_pool.hpp:48:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/storage_utils.hpp:45:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session_types.hpp:37:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:554:3: warning: use of function '__builtin_alloca' is discouraged; there is no way to check for failure but failure may still occur, resulting in a possibly exploitable security vulnerability [-Walloca]
554 | TORRENT_ALLOCA(to_delete, char*, pe->blocks_in_piece);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:109:46: note: expanded from macro 'TORRENT_ALLOCA'
109 | auto* TORRENT_ALLOCA_tmp = static_cast(TORRENT_ALLOCA_FUN(sizeof(t) * static_cast(TORRENT_ALLOCA_size))); \
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:94:28: note: expanded from macro 'TORRENT_ALLOCA_FUN'
94 | #define TORRENT_ALLOCA_FUN alloca
| ^
/usr/include/stdlib.h:258:20: note: expanded from macro 'alloca'
258 | #define alloca(sz) __builtin_alloca(sz)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:848:2: warning: use of function '__builtin_alloca' is discouraged; there is no way to check for failure but failure may still occur, resulting in a possibly exploitable security vulnerability [-Walloca]
848 | TORRENT_ALLOCA(to_delete, char*, pe->blocks_in_piece);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:109:46: note: expanded from macro 'TORRENT_ALLOCA'
109 | auto* TORRENT_ALLOCA_tmp = static_cast(TORRENT_ALLOCA_FUN(sizeof(t) * static_cast(TORRENT_ALLOCA_size))); \
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:94:28: note: expanded from macro 'TORRENT_ALLOCA_FUN'
94 | #define TORRENT_ALLOCA_FUN alloca
| ^
/usr/include/stdlib.h:258:20: note: expanded from macro 'alloca'
258 | #define alloca(sz) __builtin_alloca(sz)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:953:2: warning: use of function '__builtin_alloca' is discouraged; there is no way to check for failure but failure may still occur, resulting in a possibly exploitable security vulnerability [-Walloca]
953 | TORRENT_ALLOCA(to_delete, char*, num);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:109:46: note: expanded from macro 'TORRENT_ALLOCA'
109 | auto* TORRENT_ALLOCA_tmp = static_cast(TORRENT_ALLOCA_FUN(sizeof(t) * static_cast(TORRENT_ALLOCA_size))); \
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:94:28: note: expanded from macro 'TORRENT_ALLOCA_FUN'
94 | #define TORRENT_ALLOCA_FUN alloca
| ^
/usr/include/stdlib.h:258:20: note: expanded from macro 'alloca'
258 | #define alloca(sz) __builtin_alloca(sz)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:1393:2: warning: use of function '__builtin_alloca' is discouraged; there is no way to check for failure but failure may still occur, resulting in a possibly exploitable security vulnerability [-Walloca]
1393 | TORRENT_ALLOCA(to_delete, char*, pe->blocks_in_piece);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:109:46: note: expanded from macro 'TORRENT_ALLOCA'
109 | auto* TORRENT_ALLOCA_tmp = static_cast(TORRENT_ALLOCA_FUN(sizeof(t) * static_cast(TORRENT_ALLOCA_size))); \
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:94:28: note: expanded from macro 'TORRENT_ALLOCA_FUN'
94 | #define TORRENT_ALLOCA_FUN alloca
| ^
/usr/include/stdlib.h:258:20: note: expanded from macro 'alloca'
258 | #define alloca(sz) __builtin_alloca(sz)
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/block_cache.hpp:49:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/hasher.hpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/sha1_hash.hpp:49:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/ffs.hpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:131:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
131 | T* end() const noexcept { return m_ptr + m_len; }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:131:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
131 | T* end() const noexcept { return m_ptr + m_len; }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:168:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
168 | return m_ptr[idx];
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:34:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/block_cache.hpp:381:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
381 | { return m_lru[cached_piece_entry::write_lru].iterate(); }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/block_cache.hpp:383:45: warning: unsafe buffer access [-Wunsafe-buffer-usage]
383 | int num_write_lru_pieces() const { return m_lru[cached_piece_entry::write_lru].size(); }
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/storage.hpp:48:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:86:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
86 | return (buf()[index / 32] & aux::host_to_network(0x80000000 >> (index & 31))) != 0;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:94:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
94 | buf()[index / 32] &= aux::host_to_network(~(0x80000000 >> (index & 31)));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:100:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
100 | buf()[index / 32] |= aux::host_to_network(0x80000000 >> (index & 31));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:115:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
115 | if (b[i] != 0) return false;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:205:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
205 | ++buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:218:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
218 | --buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ~~~~~~^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:269:21: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | if (size() & 31) buf()[num_words() - 1] &= aux::host_to_network(0xffffffff << (32 - (size() & 31)));
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:41:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:50:29: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
50 | for (; current != last; ++current) {
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:54:30: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
54 | for (; first != current; ++first) {
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:392:47: warning: unsafe buffer access [-Wunsafe-buffer-usage]
392 | linked_list* lru_list = &m_lru[p->cache_state];
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:460:2: warning: unsafe buffer access [-Wunsafe-buffer-usage]
460 | m_lru[p->cache_state].erase(p);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:461:2: warning: unsafe buffer access [-Wunsafe-buffer-usage]
461 | m_lru[target_queue].push_back(p);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:496:42: warning: unsafe buffer access [-Wunsafe-buffer-usage]
496 | linked_list* src = &m_lru[state];
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:497:42: warning: unsafe buffer access [-Wunsafe-buffer-usage]
497 | linked_list* dst = &m_lru[desired_state];
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:527:49: warning: unsafe buffer access [-Wunsafe-buffer-usage]
527 | linked_list* piece_list = &m_lru[cached_piece_entry::volatile_read_lru];
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:630:48: warning: unsafe buffer access [-Wunsafe-buffer-usage]
630 | linked_list* lru_list = &m_lru[p->cache_state];
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:672:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
672 | m_lru[p->cache_state].erase(p);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:674:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
674 | m_lru[p->cache_state].push_back(p);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:778:15: warning: unsafe buffer access [-Wunsafe-buffer-usage]
778 | int block = flushed[i];
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:932:47: warning: unsafe buffer access [-Wunsafe-buffer-usage]
932 | linked_list* lru_list = &m_lru[pe->cache_state];
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:969:17: warning: unsafe buffer access [-Wunsafe-buffer-usage]
969 | lru_list[0] = &m_lru[cached_piece_entry::volatile_read_lru];
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:976:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
976 | if (m_lru[cached_piece_entry::read_lru2].size()
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:977:6: warning: unsafe buffer access [-Wunsafe-buffer-usage]
977 | > m_lru[cached_piece_entry::read_lru1].size())
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:979:19: warning: unsafe buffer access [-Wunsafe-buffer-usage]
979 | lru_list[1] = &m_lru[cached_piece_entry::read_lru2];
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:980:19: warning: unsafe buffer access [-Wunsafe-buffer-usage]
980 | lru_list[2] = &m_lru[cached_piece_entry::read_lru1];
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:984:19: warning: unsafe buffer access [-Wunsafe-buffer-usage]
984 | lru_list[1] = &m_lru[cached_piece_entry::read_lru1];
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:985:19: warning: unsafe buffer access [-Wunsafe-buffer-usage]
985 | lru_list[2] = &m_lru[cached_piece_entry::read_lru2];
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:992:18: warning: unsafe buffer access [-Wunsafe-buffer-usage]
992 | lru_list[1] = &m_lru[cached_piece_entry::read_lru2];
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:993:18: warning: unsafe buffer access [-Wunsafe-buffer-usage]
993 | lru_list[2] = &m_lru[cached_piece_entry::read_lru1];
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:998:18: warning: unsafe buffer access [-Wunsafe-buffer-usage]
998 | lru_list[1] = &m_lru[cached_piece_entry::read_lru1];
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:999:18: warning: unsafe buffer access [-Wunsafe-buffer-usage]
999 | lru_list[2] = &m_lru[cached_piece_entry::read_lru2];
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:1011:17: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1011 | for (auto i = lru_list[end]->iterate(); i.get() && num > 0;)
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:1083:18: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1083 | for (auto i = m_lru[cached_piece_entry::write_lru].iterate(); i.get() && num > 0;)
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:1229:49: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1229 | linked_list* ghost_list = &m_lru[pe->cache_state + 1];
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:1240:2: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1240 | m_lru[pe->cache_state].erase(pe);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:1467:38: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1467 | c.set_value(counters::arc_mru_size, m_lru[cached_piece_entry::read_lru1].size());
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:1468:44: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1468 | c.set_value(counters::arc_mru_ghost_size, m_lru[cached_piece_entry::read_lru1_ghost].size());
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:1469:38: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1469 | c.set_value(counters::arc_mfu_size, m_lru[cached_piece_entry::read_lru2].size());
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:1470:44: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1470 | c.set_value(counters::arc_mfu_ghost_size, m_lru[cached_piece_entry::read_lru2_ghost].size());
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:1471:40: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1471 | c.set_value(counters::arc_write_size, m_lru[cached_piece_entry::write_lru].size());
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:1472:43: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1472 | c.set_value(counters::arc_volatile_size, m_lru[cached_piece_entry::volatile_read_lru].size());
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:1483:22: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1483 | ret->arc_mru_size = m_lru[cached_piece_entry::read_lru1].size();
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:1484:28: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1484 | ret->arc_mru_ghost_size = m_lru[cached_piece_entry::read_lru1_ghost].size();
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:1485:22: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1485 | ret->arc_mfu_size = m_lru[cached_piece_entry::read_lru2].size();
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:1486:28: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1486 | ret->arc_mfu_ghost_size = m_lru[cached_piece_entry::read_lru2_ghost].size();
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:1487:24: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1487 | ret->arc_write_size = m_lru[cached_piece_entry::write_lru].size();
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:1488:27: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1488 | ret->arc_volatile_size = m_lru[cached_piece_entry::volatile_read_lru].size();
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:1676:6: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
1676 | , bl.buf + block_offset, static_cast(0x4000 - block_offset));
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:1700:59: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
1700 | std::memcpy(boost::get(j->argument).get()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/block_cache.cpp:1702:6: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
1702 | , pe->blocks[block].buf + block_offset
| ^~~~~~~~~~~~~~~~~~~~~
62 warnings generated.
[ 18% 55/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/broadcast_socket.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/broadcast_socket.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/broadcast_socket.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/broadcast_socket.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/broadcast_socket.cpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/enum_net.hpp:54:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
1 warning generated.
[ 18% 56/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/enum_net.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/enum_net.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/enum_net.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/enum_net.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/enum_net.cpp:35:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/enum_net.hpp:54:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/enum_net.cpp:35:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/enum_net.hpp:53:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:131:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
131 | T* end() const noexcept { return m_ptr + m_len; }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:168:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
168 | return m_ptr[idx];
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/enum_net.cpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/socket_type.hpp:39:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/socks5_stream.hpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/proxy_base.hpp:36:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:176:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
176 | start += str.size();
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/enum_net.cpp:503:42: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
503 | auto* sa = reinterpret_cast(rtm + 1);
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/enum_net.cpp:508:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
508 | rti_info[i] = nullptr;
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/enum_net.cpp:511:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
511 | rti_info[i] = sa;
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/enum_net.cpp:516:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
516 | sa = reinterpret_cast(reinterpret_cast(sa) + ROUNDUP(sa->sa_len));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/enum_net.cpp:551:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
551 | rv.name[sizeof(rv.name) - 1] = '\0';
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/enum_net.cpp:1191:18: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
1191 | char* end = buf.get() + needed;
| ~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/enum_net.cpp:1201:43: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
1201 | for (char* next = buf.get(); next < end; next += rtm->rtm_msglen)
| ^~~~
11 warnings generated.
[ 19% 57/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/file_progress.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/file_progress.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/file_progress.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/file_progress.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/file_progress.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/piece_picker.hpp:55:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_types.hpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert.hpp:66:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/file_progress.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/piece_picker.hpp:55:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_types.hpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_handle.hpp:59:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_info.hpp:40:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:86:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
86 | return (buf()[index / 32] & aux::host_to_network(0x80000000 >> (index & 31))) != 0;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:94:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
94 | buf()[index / 32] &= aux::host_to_network(~(0x80000000 >> (index & 31)));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:100:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
100 | buf()[index / 32] |= aux::host_to_network(0x80000000 >> (index & 31));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:115:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
115 | if (b[i] != 0) return false;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:205:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
205 | ++buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:218:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
218 | --buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ~~~~~~^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:269:21: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | if (size() & 31) buf()[num_words() - 1] &= aux::host_to_network(0xffffffff << (32 - (size() & 31)));
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/file_progress.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/piece_picker.hpp:55:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_types.hpp:43:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:18: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:118:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
118 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:124:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
124 | m_stat[download_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:125:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
125 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:133:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
133 | m_stat[download_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:134:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
134 | m_stat[download_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:142:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
142 | m_stat[upload_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:143:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
143 | m_stat[upload_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:158:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
158 | m_stat[download_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:159:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
159 | m_stat[upload_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:162:43: warning: unsafe buffer access [-Wunsafe-buffer-usage]
162 | int upload_ip_overhead() const { return m_stat[upload_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:163:45: warning: unsafe buffer access [-Wunsafe-buffer-usage]
163 | int download_ip_overhead() const { return m_stat[download_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:169:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
169 | m_stat[i].second_tick(tick_interval_ms);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:174:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
174 | return m_stat[upload_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:175:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
175 | + m_stat[upload_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:176:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
176 | + m_stat[upload_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:181:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
181 | return m_stat[download_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:182:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
182 | + m_stat[download_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:183:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
183 | + m_stat[download_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:188:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
188 | return m_stat[upload_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:189:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
189 | + m_stat[upload_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:190:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
190 | + m_stat[upload_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:195:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
195 | return m_stat[download_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:196:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
196 | + m_stat[download_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:197:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
197 | + m_stat[download_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:202:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
202 | return m_stat[upload_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:203:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
203 | + m_stat[upload_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:204:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
204 | + m_stat[upload_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:209:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
209 | return m_stat[download_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:210:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
210 | + m_stat[download_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:211:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
211 | + m_stat[download_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:215:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
215 | { return m_stat[upload_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:217:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
217 | { return m_stat[download_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:220:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
220 | { return m_stat[upload_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:222:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
222 | { return m_stat[download_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:225:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
225 | { return m_stat[upload_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:227:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
227 | { return m_stat[download_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:230:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
230 | { return m_stat[channel].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:232:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
232 | { return m_stat[channel].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:239:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
239 | m_stat[download_payload].offset(downloaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:240:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
240 | m_stat[upload_payload].offset(uploaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:244:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
244 | { return m_stat[download_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:246:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
246 | { return m_stat[upload_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:248:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
248 | { return m_stat[download_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:250:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
250 | { return m_stat[upload_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:269:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | m_stat[i].clear();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:275:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
275 | return m_stat[i];
| ^~~~~~
58 warnings generated.
[ 19% 58/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/http_parser.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/http_parser.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/http_parser.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_parser.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_parser.cpp:45:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/escape_string.hpp:40:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_parser.cpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/http_parser.hpp:44:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:131:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
131 | T* end() const noexcept { return m_ptr + m_len; }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:153:13: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
153 | return { data() + offset, size() - offset };
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:161:13: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
161 | return { data() + offset, count };
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:161:13: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
161 | return { data() + offset, count };
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_parser.cpp:175:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
175 | char const* pos = recv_buffer.data() + m_recv_pos;
| ~~~~~~~~~~~~^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_parser.cpp:199:29: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
199 | if (pos != line_end && *(line_end - 1) == '\r') --line_end;
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_parser.cpp:199:54: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
199 | if (pos != line_end && *(line_end - 1) == '\r') --line_end;
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_parser.cpp:202:6: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
202 | ++newline;
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_parser.cpp:206:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
206 | std::get<1>(ret) += int(newline - (m_recv_buffer.data() + start_pos));
| ~~~~~~~~~~~~~~^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_parser.cpp:246:30: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
246 | if (pos != line_end && *(line_end - 1) == '\r') --line_end;
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_parser.cpp:246:55: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
246 | if (pos != line_end && *(line_end - 1) == '\r') --line_end;
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_parser.cpp:248:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
248 | ++newline;
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_parser.cpp:309:48: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
309 | if (string_begins_no_case("bytes ", ptr)) ptr += 6;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_parser.cpp:323:13: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
323 | ptr = end + 1;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_parser.cpp:353:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
353 | std::get<1>(ret) += int(newline - (m_recv_buffer.data() + start_pos));
| ~~~~~~~~~~~~~~^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_parser.cpp:468:44: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
468 | if (pos < buf.end() && pos[0] == '\r') ++pos;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_parser.cpp:469:44: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
469 | if (pos < buf.end() && pos[0] == '\n') ++pos;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_parser.cpp:475:5: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
475 | ++newline;
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_parser.cpp:487:45: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
487 | for (char const* i = pos; i != newline; ++i)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_parser.cpp:527:29: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
527 | if (pos != line_end && *(line_end - 1) == '\r') --line_end;
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_parser.cpp:527:54: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
527 | if (pos != line_end && *(line_end - 1) == '\r') --line_end;
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_parser.cpp:529:6: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
529 | ++newline;
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_parser.cpp:632:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
632 | write_ptr += chunk.size();
| ^~~~~~~~~
24 warnings generated.
[ 20% 59/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/merkle.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/merkle.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/merkle.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/merkle.cpp
[ 21% 60/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/choker.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/choker.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/choker.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/choker.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/choker.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert.hpp:66:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/choker.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:37:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:107:45: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
107 | std::copy(initialize.begin(), initialize.begin()
| ~~~~~~~~~~~^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:142:76: warning: unsafe buffer access [-Wunsafe-buffer-usage]
142 | char& operator[](index_type const i) { TORRENT_ASSERT(i < size()); return m_begin[i]; }
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:143:93: warning: unsafe buffer access [-Wunsafe-buffer-usage]
143 | char const& operator[](difference_type const i) const { TORRENT_ASSERT(i < size()); return m_begin[i]; }
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:147:23: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
147 | char* end() { return m_begin + m_size; }
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:148:35: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
148 | char const* end() const { return m_begin + m_size; }
| ^~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/choker.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:39:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:18: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:118:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
118 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:124:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
124 | m_stat[download_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:125:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
125 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:133:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
133 | m_stat[download_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:134:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
134 | m_stat[download_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:142:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
142 | m_stat[upload_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:143:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
143 | m_stat[upload_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:158:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
158 | m_stat[download_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:159:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
159 | m_stat[upload_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:162:43: warning: unsafe buffer access [-Wunsafe-buffer-usage]
162 | int upload_ip_overhead() const { return m_stat[upload_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:163:45: warning: unsafe buffer access [-Wunsafe-buffer-usage]
163 | int download_ip_overhead() const { return m_stat[download_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:169:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
169 | m_stat[i].second_tick(tick_interval_ms);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:174:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
174 | return m_stat[upload_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:175:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
175 | + m_stat[upload_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:176:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
176 | + m_stat[upload_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:181:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
181 | return m_stat[download_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:182:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
182 | + m_stat[download_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:183:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
183 | + m_stat[download_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:188:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
188 | return m_stat[upload_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:189:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
189 | + m_stat[upload_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:190:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
190 | + m_stat[upload_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:195:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
195 | return m_stat[download_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:196:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
196 | + m_stat[download_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:197:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
197 | + m_stat[download_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:202:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
202 | return m_stat[upload_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:203:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
203 | + m_stat[upload_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:204:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
204 | + m_stat[upload_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:209:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
209 | return m_stat[download_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:210:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
210 | + m_stat[download_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:211:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
211 | + m_stat[download_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:215:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
215 | { return m_stat[upload_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:217:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
217 | { return m_stat[download_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:220:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
220 | { return m_stat[upload_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:222:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
222 | { return m_stat[download_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:225:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
225 | { return m_stat[upload_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:227:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
227 | { return m_stat[download_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:230:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
230 | { return m_stat[channel].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:232:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
232 | { return m_stat[channel].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:239:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
239 | m_stat[download_payload].offset(downloaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:240:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
240 | m_stat[upload_payload].offset(uploaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:244:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
244 | { return m_stat[download_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:246:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
246 | { return m_stat[upload_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:248:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
248 | { return m_stat[download_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:250:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
250 | { return m_stat[upload_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:269:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | m_stat[i].clear();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:275:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
275 | return m_stat[i];
| ^~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/choker.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:47:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:86:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
86 | return (buf()[index / 32] & aux::host_to_network(0x80000000 >> (index & 31))) != 0;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:94:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
94 | buf()[index / 32] &= aux::host_to_network(~(0x80000000 >> (index & 31)));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:100:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
100 | buf()[index / 32] |= aux::host_to_network(0x80000000 >> (index & 31));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:115:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
115 | if (b[i] != 0) return false;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:205:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
205 | ++buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:218:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
218 | --buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ~~~~~~^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:269:21: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | if (size() & 31) buf()[num_words() - 1] &= aux::host_to_network(0xffffffff << (32 - (size() & 31)));
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/choker.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:51:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_class.hpp:102:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
102 | priority[1] = 1;
| ^~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/choker.cpp:34:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:1188:8: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1188 | if (m_pc.m_channel_state[peer_connection::upload_channel] & peer_info::bw_network)
| ^~~~~~~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:1194:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1194 | m_pc.m_channel_state[peer_connection::upload_channel] |= peer_info::bw_network;
| ^~~~~~~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:1204:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1204 | m_pc.m_channel_state[peer_connection::upload_channel] &= ~peer_info::bw_network;
| ^~~~~~~~~~~~~~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/choker.cpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent.hpp:48:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_info.hpp:526:13: warning: unsafe buffer access [-Wunsafe-buffer-usage]
526 | return &m_piece_hashes[idx * 20];
| ^~~~~~~~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/choker.cpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent.hpp:51:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_list.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_peer.hpp:40:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/string_ptr.hpp:46:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
46 | m_ptr[str.size()] = '\0';
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/choker.cpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent.hpp:51:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_list.hpp:47:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/ip_voter.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_interface.hpp:46:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_udp_sockets.hpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_socket_manager.hpp:39:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/socket_type.hpp:39:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/socks5_stream.hpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/proxy_base.hpp:36:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:176:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
176 | start += str.size();
| ^~~~~
70 warnings generated.
[ 21% 61/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/identify_client.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/identify_client.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/identify_client.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/identify_client.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/identify_client.cpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/identify_client.hpp:44:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_id.hpp:36:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/sha1_hash.hpp:249:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
249 | return reinterpret_cast(m_number.data())[i];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/sha1_hash.hpp:260:12: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
260 | { return reinterpret_cast(m_number.data()) + size(); }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/identify_client.cpp:72:3: warning: unsafe buffer access [-Wunsafe-buffer-usage]
72 | ret.name[1] = char(id[2]);
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/identify_client.cpp:90:21: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
90 | if (std::equal(id.begin() + 4, id.begin() + 6, "--"))
| ~~~^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/identify_client.cpp:90:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
90 | if (std::equal(id.begin() + 4, id.begin() + 6, "--"))
| ~~~^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/identify_client.cpp:109:3: warning: unsafe buffer access [-Wunsafe-buffer-usage]
109 | ret.name[1] = 0;
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/identify_client.cpp:123:3: warning: unsafe buffer access [-Wunsafe-buffer-usage]
123 | ret.name[1] = 0;
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/identify_client.cpp:292:37: warning: unsafe buffer access [-Wunsafe-buffer-usage]
292 | || ((lhs.id[0] == rhs.id[0]) && (lhs.id[1] < rhs.id[1]));
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/identify_client.cpp:292:49: warning: unsafe buffer access [-Wunsafe-buffer-usage]
292 | || ((lhs.id[0] == rhs.id[0]) && (lhs.id[1] < rhs.id[1]));
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/identify_client.cpp:302:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
302 | std::lower_bound(name_map, name_map + size
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/identify_client.cpp:315:11: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
315 | if (i < name_map + size && std::equal(f.name, f.name + 2, i->id))
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/identify_client.cpp:315:49: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
315 | if (i < name_map + size && std::equal(f.name, f.name + 2, i->id))
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/identify_client.cpp:333:18: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
333 | std::snprintf(identity + num_chars, sizeof(identity) - aux::numeric_cast(num_chars)
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/identify_client.cpp:342:29: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
342 | return std::equal(search, search + std::strlen(search), id);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/identify_client.cpp:387:20: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
387 | if (find_string(PID + e.offset, e.id)) return e.name;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/identify_client.cpp:390:35: warning: unsafe buffer access [-Wunsafe-buffer-usage]
390 | if (find_string(PID, "-BOW") && PID[7] == '-')
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/identify_client.cpp:391:43: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
391 | return "Bits on Wheels " + std::string(PID + 4, PID + 7);
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/identify_client.cpp:391:52: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
391 | return "Bits on Wheels " + std::string(PID + 4, PID + 7);
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/identify_client.cpp:395:21: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
395 | std::string user(PID + 2, 12);
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/identify_client.cpp:398:44: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
398 | bool const is_equ_zero = std::equal(PID, PID + 12, "\0\0\0\0\0\0\0\0\0\0\0\0");
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/identify_client.cpp:400:22: warning: unsafe buffer access [-Wunsafe-buffer-usage]
400 | if (is_equ_zero && PID[12] == '\x97')
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/identify_client.cpp:403:22: warning: unsafe buffer access [-Wunsafe-buffer-usage]
403 | if (is_equ_zero && PID[12] == '\0')
| ^~~
22 warnings generated.
[ 22% 62/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/lazy_bdecode.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/lazy_bdecode.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/lazy_bdecode.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:150:4: warning: 'switch' missing 'default' label [-Wswitch-default]
150 | switch (top->type())
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:516:3: warning: 'switch' missing 'default' label [-Wswitch-default]
516 | switch (e.type())
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:611:3: warning: 'switch' missing 'default' label [-Wswitch-default]
611 | switch (e.type())
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:37:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/lazy_entry.hpp:171:14: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
171 | m_begin = start - 1; // include 'i'
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/lazy_entry.hpp:195:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
195 | const_cast(m_data.start)[m_size] = 0;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/lazy_entry.hpp:297:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
297 | return &m_data.list[i+1];
| ^~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:79:48: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
79 | while (start < end && *start != delimiter) ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:106:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
106 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:147:6: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
147 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:168:6: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
168 | start += len;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:172:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
172 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:201:26: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
201 | top->construct_dict(start - 1);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:204:26: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
204 | top->construct_list(start - 1);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:213:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
213 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:227:6: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
227 | start += len;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:252:13: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
252 | parse_int(m_data.start + int(negative)
| ^~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:253:6: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
253 | , m_data.start + m_size, 'e', val, ec);
| ^~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:275:39: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
275 | std::move(m_data.dict, m_data.dict + m_size + 1, tmp);
| ~~~~~~~~~~~~^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:275:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
275 | std::move(m_data.dict, m_data.dict + m_size + 1, tmp);
| ^~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:283:26: warning: unsafe buffer access [-Wunsafe-buffer-usage]
283 | lazy_dict_entry& ret = m_data.dict[1 + m_size++];
| ^~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:316:19: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
316 | m_begin = start - 1 - num_digits(length);
| ~~~~~~^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:316:13: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
316 | m_begin = start - 1 - num_digits(length);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:330:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
330 | ++str1;
| ^~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:331:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
331 | ++str2;
| ^~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:342:30: warning: unsafe buffer access [-Wunsafe-buffer-usage]
342 | lazy_dict_entry const& e = m_data.dict[i + 1];
| ^~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:409:25: warning: unsafe buffer access [-Wunsafe-buffer-usage]
409 | lazy_dict_entry& e = m_data.dict[i + 1];
| ^~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:421:25: warning: unsafe buffer access [-Wunsafe-buffer-usage]
421 | lazy_dict_entry& e = m_data.dict[i+1];
| ^~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:445:39: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
445 | std::move(m_data.list, m_data.list + m_size + 1, tmp);
| ~~~~~~~~~~~~^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:445:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
445 | std::move(m_data.list, m_data.list + m_size + 1, tmp);
| ^~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:453:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
453 | return &m_data.list[1 + (m_size++)];
| ^~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:569:13: warning: unsafe buffer access [-Wunsafe-buffer-usage]
569 | char c = str[i];
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:581:20: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
581 | ret.append(str + len - 14, 14);
| ~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:581:16: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
581 | ret.append(str + len - 14, 14);
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:592:35: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
592 | detail::escape_string(ret, str + len - 9, 9);
| ~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:592:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
592 | detail::escape_string(ret, str + len - 9, 9);
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:609:36: warning: unsafe buffer access [-Wunsafe-buffer-usage]
609 | if (indent < 197 && indent >= 0) indent_str[indent + 2] = 0;
| ^~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:630:28: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
630 | if (!one_liner) ret += indent_str + 1;
| ^~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:636:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
636 | else ret += (one_liner?" ":indent_str+1);
| ^~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:646:28: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
646 | if (!one_liner) ret += indent_str+1;
| ^~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lazy_bdecode.cpp:655:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
655 | else ret += (one_liner?" ":indent_str+1);
| ^~~~~~~~~~
40 warnings generated.
[ 22% 63/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/ip_notifier.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/ip_notifier.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/ip_notifier.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/ip_notifier.cpp
[ 23% 64/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/file_storage.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/file_storage.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/file_storage.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/file_storage.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/file_storage.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/file_storage.hpp:50:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/file_storage.cpp:65:39: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
65 | constexpr file_flags_t file_storage::flag_pad_file;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/file_storage.cpp:66:39: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
66 | constexpr file_flags_t file_storage::flag_hidden;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/file_storage.cpp:67:39: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
67 | constexpr file_flags_t file_storage::flag_executable;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/file_storage.cpp:68:39: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
68 | constexpr file_flags_t file_storage::flag_symlink;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/file_storage.cpp:71:39: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
71 | constexpr file_flags_t file_storage::pad_file;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/file_storage.cpp:72:39: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
72 | constexpr file_flags_t file_storage::attribute_hidden;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/file_storage.cpp:73:39: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
73 | constexpr file_flags_t file_storage::attribute_executable;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/file_storage.cpp:74:39: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
74 | constexpr file_flags_t file_storage::attribute_symlink;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/file_storage.cpp:343:6: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
343 | f.name += off;
| ~~^~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/file_storage.cpp:349:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
349 | h += off;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/file_storage.cpp:681:23: warning: unsafe buffer access [-Wunsafe-buffer-usage]
681 | std::string& ret = storage[(counter++) % 4];
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/file_storage.cpp:690:22: warning: unsafe buffer access [-Wunsafe-buffer-usage]
690 | std::string& ret = storage[(counter++) % 4];
| ^~~~~~~
13 warnings generated.
[ 23% 65/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/hasher.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/hasher.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/hasher.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/hasher.cpp
[ 24% 66/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/create_torrent.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/create_torrent.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/create_torrent.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/create_torrent.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/create_torrent.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/create_torrent.hpp:36:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bencode.hpp:142:4: warning: 'switch' missing 'default' label [-Wswitch-default]
142 | switch(e.type())
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/create_torrent.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/create_torrent.hpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/file_storage.hpp:50:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/create_torrent.cpp:57:43: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
57 | constexpr create_flags_t create_torrent::optimize_alignment;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/create_torrent.cpp:59:43: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
59 | constexpr create_flags_t create_torrent::optimize;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/create_torrent.cpp:61:43: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
61 | constexpr create_flags_t create_torrent::merkle;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/create_torrent.cpp:62:43: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
62 | constexpr create_flags_t create_torrent::modification_time;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/create_torrent.cpp:63:43: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
63 | constexpr create_flags_t create_torrent::symlinks;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/create_torrent.cpp:64:43: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
64 | constexpr create_flags_t create_torrent::mutable_torrent_support;
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/create_torrent.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/create_torrent.hpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bencode.hpp:61:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:176:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
176 | start += str.size();
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/create_torrent.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/create_torrent.hpp:39:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/storage.hpp:44:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/storage_piece_set.hpp:41:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/block_cache.hpp:381:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
381 | { return m_lru[cached_piece_entry::write_lru].iterate(); }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/block_cache.hpp:383:45: warning: unsafe buffer access [-Wunsafe-buffer-usage]
383 | int num_write_lru_pieces() const { return m_lru[cached_piece_entry::write_lru].size(); }
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/create_torrent.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/create_torrent.hpp:39:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/storage.hpp:48:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:86:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
86 | return (buf()[index / 32] & aux::host_to_network(0x80000000 >> (index & 31))) != 0;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:94:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
94 | buf()[index / 32] &= aux::host_to_network(~(0x80000000 >> (index & 31)));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:100:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
100 | buf()[index / 32] |= aux::host_to_network(0x80000000 >> (index & 31));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:115:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
115 | if (b[i] != 0) return false;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:205:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
205 | ++buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:218:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
218 | --buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ~~~~~~^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:269:21: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | if (size() & 31) buf()[num_words() - 1] &= aux::host_to_network(0xffffffff << (32 - (size() & 31)));
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/create_torrent.cpp:37:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_info.hpp:526:13: warning: unsafe buffer access [-Wunsafe-buffer-usage]
526 | return &m_piece_hashes[idx * 20];
| ^~~~~~~~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/create_torrent.cpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_manager.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_types.hpp:43:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:18: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:118:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
118 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:124:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
124 | m_stat[download_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:125:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
125 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:133:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
133 | m_stat[download_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:134:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
134 | m_stat[download_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:142:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
142 | m_stat[upload_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:143:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
143 | m_stat[upload_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:158:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
158 | m_stat[download_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:159:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
159 | m_stat[upload_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:162:43: warning: unsafe buffer access [-Wunsafe-buffer-usage]
162 | int upload_ip_overhead() const { return m_stat[upload_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:163:45: warning: unsafe buffer access [-Wunsafe-buffer-usage]
163 | int download_ip_overhead() const { return m_stat[download_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:169:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
169 | m_stat[i].second_tick(tick_interval_ms);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:174:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
174 | return m_stat[upload_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:175:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
175 | + m_stat[upload_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:176:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
176 | + m_stat[upload_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:181:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
181 | return m_stat[download_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:182:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
182 | + m_stat[download_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:183:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
183 | + m_stat[download_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:188:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
188 | return m_stat[upload_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:189:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
189 | + m_stat[upload_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:190:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
190 | + m_stat[upload_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:195:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
195 | return m_stat[download_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:196:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
196 | + m_stat[download_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:197:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
197 | + m_stat[download_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:202:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
202 | return m_stat[upload_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:203:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
203 | + m_stat[upload_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:204:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
204 | + m_stat[upload_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:209:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
209 | return m_stat[download_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:210:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
210 | + m_stat[download_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:211:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
211 | + m_stat[download_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:215:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
215 | { return m_stat[upload_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:217:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
217 | { return m_stat[download_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:220:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
220 | { return m_stat[upload_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:222:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
222 | { return m_stat[download_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:225:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
225 | { return m_stat[upload_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:227:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
227 | { return m_stat[download_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:230:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
230 | { return m_stat[channel].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:232:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
232 | { return m_stat[channel].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:239:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
239 | m_stat[download_payload].offset(downloaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:240:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
240 | m_stat[upload_payload].offset(uploaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:244:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
244 | { return m_stat[download_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:246:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
246 | { return m_stat[upload_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:248:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
248 | { return m_stat[download_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:250:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
250 | { return m_stat[upload_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:269:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | m_stat[i].clear();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:275:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
275 | return m_stat[i];
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/create_torrent.cpp:82:37: warning: unsafe buffer access [-Wunsafe-buffer-usage]
82 | if (char_read < MAX_SYMLINK_PATH) buf[char_read] = 0;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/create_torrent.cpp:457:47: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
457 | m_info_dict.preformatted().assign(&info[0], &info[0] + size);
| ^~~~~~~~
71 warnings generated.
[ 25% 67/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/ip_filter.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/ip_filter.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/ip_filter.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/ip_filter.cpp
[ 25% 68/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/packet_buffer.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/packet_buffer.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/packet_buffer.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/packet_buffer.cpp
[ 26% 69/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/alert.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/alert.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/alert.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert.hpp:66:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/socket_io.hpp:41:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bencode.hpp:142:4: warning: 'switch' missing 'default' label [-Wswitch-default]
142 | switch(e.type())
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:57:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
57 | constexpr alert_category_t alert::error_notification;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:58:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
58 | constexpr alert_category_t alert::peer_notification;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:59:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
59 | constexpr alert_category_t alert::port_mapping_notification;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:60:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
60 | constexpr alert_category_t alert::storage_notification;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:61:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
61 | constexpr alert_category_t alert::tracker_notification;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:62:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
62 | constexpr alert_category_t alert::connect_notification;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:63:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
63 | constexpr alert_category_t alert::status_notification;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:65:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
65 | constexpr alert_category_t alert::debug_notification;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:66:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
66 | constexpr alert_category_t alert::progress_notification;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:68:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
68 | constexpr alert_category_t alert::ip_block_notification;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:69:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
69 | constexpr alert_category_t alert::performance_warning;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:70:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
70 | constexpr alert_category_t alert::dht_notification;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:71:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
71 | constexpr alert_category_t alert::stats_notification;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:72:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
72 | constexpr alert_category_t alert::session_log_notification;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:73:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
73 | constexpr alert_category_t alert::torrent_log_notification;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:74:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
74 | constexpr alert_category_t alert::peer_log_notification;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:75:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
75 | constexpr alert_category_t alert::incoming_request_notification;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:76:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
76 | constexpr alert_category_t alert::dht_log_notification;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:77:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
77 | constexpr alert_category_t alert::dht_operation_notification;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:78:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
78 | constexpr alert_category_t alert::port_mapping_log_notification;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:79:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
79 | constexpr alert_category_t alert::picker_log_notification;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:80:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
80 | constexpr alert_category_t alert::file_progress_notification;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:81:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
81 | constexpr alert_category_t alert::piece_progress_notification;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:82:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
82 | constexpr alert_category_t alert::upload_notification;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:83:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
83 | constexpr alert_category_t alert::block_progress_notification;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:85:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
85 | constexpr alert_category_t alert::all_categories;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:87:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
87 | constexpr alert_category_t alert::rss_notification;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:1014:3: warning: 'switch' missing 'default' label [-Wswitch-default]
1014 | switch (op)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:2611:45: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
2611 | constexpr picker_flags_t picker_log_alert::partial_ratio;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:2612:45: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
2612 | constexpr picker_flags_t picker_log_alert::prioritize_partials;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:2613:45: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
2613 | constexpr picker_flags_t picker_log_alert::rarest_first_partials;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:2614:45: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
2614 | constexpr picker_flags_t picker_log_alert::rarest_first;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:2615:45: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
2615 | constexpr picker_flags_t picker_log_alert::reverse_rarest_first;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:2616:45: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
2616 | constexpr picker_flags_t picker_log_alert::suggested_pieces;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:2617:45: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
2617 | constexpr picker_flags_t picker_log_alert::prio_sequential_pieces;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:2618:45: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
2618 | constexpr picker_flags_t picker_log_alert::sequential_pieces;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:2619:45: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
2619 | constexpr picker_flags_t picker_log_alert::reverse_pieces;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:2620:45: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
2620 | constexpr picker_flags_t picker_log_alert::time_critical;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:2621:45: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
2621 | constexpr picker_flags_t picker_log_alert::random_pieces;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:2622:45: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
2622 | constexpr picker_flags_t picker_log_alert::prefer_contiguous;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:2623:45: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
2623 | constexpr picker_flags_t picker_log_alert::reverse_sequential;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:2624:45: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
2624 | constexpr picker_flags_t picker_log_alert::backup1;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:2625:45: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
2625 | constexpr picker_flags_t picker_log_alert::backup2;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:2626:45: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
2626 | constexpr picker_flags_t picker_log_alert::end_game;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:2627:45: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
2627 | constexpr picker_flags_t picker_log_alert::extent_affinity;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3022:52: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3022 | constexpr alert_category_t torrent_removed_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3023:47: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3023 | constexpr alert_category_t read_piece_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3024:51: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3024 | constexpr alert_category_t file_completed_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3025:49: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3025 | constexpr alert_category_t file_renamed_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3026:55: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3026 | constexpr alert_category_t file_rename_failed_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3027:48: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3027 | constexpr alert_category_t performance_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3028:50: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3028 | constexpr alert_category_t state_changed_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3029:50: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3029 | constexpr alert_category_t tracker_error_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3030:52: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3030 | constexpr alert_category_t tracker_warning_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3031:49: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3031 | constexpr alert_category_t scrape_reply_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3032:50: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3032 | constexpr alert_category_t scrape_failed_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3033:50: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3033 | constexpr alert_category_t tracker_reply_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3034:46: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3034 | constexpr alert_category_t dht_reply_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3035:53: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3035 | constexpr alert_category_t tracker_announce_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3036:48: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3036 | constexpr alert_category_t hash_failed_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3037:45: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3037 | constexpr alert_category_t peer_ban_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3038:51: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3038 | constexpr alert_category_t peer_unsnubbed_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3039:49: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3039 | constexpr alert_category_t peer_snubbed_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3040:47: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3040 | constexpr alert_category_t peer_error_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3041:49: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3041 | constexpr alert_category_t peer_connect_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3042:54: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3042 | constexpr alert_category_t peer_disconnected_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3043:52: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3043 | constexpr alert_category_t invalid_request_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3044:53: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3044 | constexpr alert_category_t torrent_finished_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3045:51: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3045 | constexpr alert_category_t piece_finished_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3046:52: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3046 | constexpr alert_category_t request_dropped_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3047:50: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3047 | constexpr alert_category_t block_timeout_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3048:51: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3048 | constexpr alert_category_t block_finished_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3049:54: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3049 | constexpr alert_category_t block_downloading_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3050:51: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3050 | constexpr alert_category_t unwanted_block_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3051:50: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3051 | constexpr alert_category_t storage_moved_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3052:57: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3052 | constexpr alert_category_t storage_moved_failed_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3053:52: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3053 | constexpr alert_category_t torrent_deleted_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3054:58: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3054 | constexpr alert_category_t torrent_delete_failed_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3055:53: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3055 | constexpr alert_category_t save_resume_data_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3056:60: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3056 | constexpr alert_category_t save_resume_data_failed_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3057:51: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3057 | constexpr alert_category_t torrent_paused_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3058:52: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3058 | constexpr alert_category_t torrent_resumed_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3059:52: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3059 | constexpr alert_category_t torrent_checked_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3060:45: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3060 | constexpr alert_category_t url_seed_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3061:47: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3061 | constexpr alert_category_t file_error_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3062:52: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3062 | constexpr alert_category_t metadata_failed_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3063:54: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3063 | constexpr alert_category_t metadata_received_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3064:46: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3064 | constexpr alert_category_t udp_error_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3065:48: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3065 | constexpr alert_category_t external_ip_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3066:50: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3066 | constexpr alert_category_t listen_failed_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3067:53: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3067 | constexpr alert_category_t listen_succeeded_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3068:50: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3068 | constexpr alert_category_t portmap_error_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3069:44: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3069 | constexpr alert_category_t portmap_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3070:48: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3070 | constexpr alert_category_t portmap_log_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3071:56: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3071 | constexpr alert_category_t fastresume_rejected_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3072:49: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3072 | constexpr alert_category_t peer_blocked_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3073:49: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3073 | constexpr alert_category_t dht_announce_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3074:50: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3074 | constexpr alert_category_t dht_get_peers_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3075:42: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3075 | constexpr alert_category_t stats_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3076:50: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3076 | constexpr alert_category_t cache_flushed_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3077:45: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3077 | constexpr alert_category_t lsd_peer_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3078:46: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3078 | constexpr alert_category_t trackerid_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3079:50: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3079 | constexpr alert_category_t dht_bootstrap_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3080:50: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3080 | constexpr alert_category_t torrent_error_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3081:54: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3081 | constexpr alert_category_t torrent_need_cert_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3082:56: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3082 | constexpr alert_category_t incoming_connection_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3083:48: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3083 | constexpr alert_category_t add_torrent_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3084:49: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3084 | constexpr alert_category_t state_update_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3085:50: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3085 | constexpr alert_category_t session_stats_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3086:46: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3086 | constexpr alert_category_t dht_error_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3087:55: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3087 | constexpr alert_category_t dht_immutable_item_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3088:53: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3088 | constexpr alert_category_t dht_mutable_item_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3089:44: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3089 | constexpr alert_category_t dht_put_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3090:40: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3090 | constexpr alert_category_t i2p_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3091:59: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3091 | constexpr alert_category_t dht_outgoing_get_peers_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3092:40: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3092 | constexpr alert_category_t log_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3093:48: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3093 | constexpr alert_category_t torrent_log_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3094:45: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3094 | constexpr alert_category_t peer_log_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3095:46: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3095 | constexpr alert_category_t lsd_error_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3096:46: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3096 | constexpr alert_category_t dht_stats_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3097:53: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3097 | constexpr alert_category_t incoming_request_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3098:44: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3098 | constexpr alert_category_t dht_log_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3099:44: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3099 | constexpr alert_category_t dht_pkt_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3100:56: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3100 | constexpr alert_category_t dht_get_peers_reply_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3101:56: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3101 | constexpr alert_category_t dht_direct_response_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3102:47: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3102 | constexpr alert_category_t picker_log_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3103:50: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3103 | constexpr alert_category_t session_error_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3104:51: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3104 | constexpr alert_category_t dht_live_nodes_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3105:57: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3105 | constexpr alert_category_t session_stats_header_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3106:58: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3106 | constexpr alert_category_t dht_sample_infohashes_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3107:51: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3107 | constexpr alert_category_t block_uploaded_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3108:51: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3108 | constexpr alert_category_t alerts_dropped_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3109:43: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3109 | constexpr alert_category_t socks5_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3111:51: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3111 | constexpr alert_category_t anonymous_mode_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3112:47: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3112 | constexpr alert_category_t mmap_cache_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3113:50: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3113 | constexpr alert_category_t torrent_added_alert::static_category;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:3114:51: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
3114 | constexpr alert_category_t torrent_update_alert::static_category;
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:39:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_types.hpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_handle.hpp:53:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:131:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
131 | T* end() const noexcept { return m_ptr + m_len; }
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:39:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_types.hpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_handle.hpp:59:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_info.hpp:40:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:86:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
86 | return (buf()[index / 32] & aux::host_to_network(0x80000000 >> (index & 31))) != 0;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:94:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
94 | buf()[index / 32] &= aux::host_to_network(~(0x80000000 >> (index & 31)));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:100:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
100 | buf()[index / 32] |= aux::host_to_network(0x80000000 >> (index & 31));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:115:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
115 | if (b[i] != 0) return false;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:205:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
205 | ++buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:218:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
218 | --buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ~~~~~~^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:269:21: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | if (size() & 31) buf()[num_words() - 1] &= aux::host_to_network(0xffffffff << (32 - (size() & 31)));
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:39:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_types.hpp:43:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:18: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:118:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
118 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:124:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
124 | m_stat[download_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:125:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
125 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:133:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
133 | m_stat[download_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:134:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
134 | m_stat[download_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:142:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
142 | m_stat[upload_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:143:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
143 | m_stat[upload_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:158:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
158 | m_stat[download_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:159:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
159 | m_stat[upload_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:162:43: warning: unsafe buffer access [-Wunsafe-buffer-usage]
162 | int upload_ip_overhead() const { return m_stat[upload_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:163:45: warning: unsafe buffer access [-Wunsafe-buffer-usage]
163 | int download_ip_overhead() const { return m_stat[download_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:169:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
169 | m_stat[i].second_tick(tick_interval_ms);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:174:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
174 | return m_stat[upload_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:175:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
175 | + m_stat[upload_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:176:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
176 | + m_stat[upload_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:181:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
181 | return m_stat[download_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:182:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
182 | + m_stat[download_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:183:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
183 | + m_stat[download_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:188:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
188 | return m_stat[upload_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:189:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
189 | + m_stat[upload_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:190:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
190 | + m_stat[upload_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:195:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
195 | return m_stat[download_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:196:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
196 | + m_stat[download_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:197:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
197 | + m_stat[download_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:202:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
202 | return m_stat[upload_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:203:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
203 | + m_stat[upload_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:204:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
204 | + m_stat[upload_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:209:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
209 | return m_stat[download_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:210:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
210 | + m_stat[download_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:211:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
211 | + m_stat[download_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:215:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
215 | { return m_stat[upload_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:217:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
217 | { return m_stat[download_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:220:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
220 | { return m_stat[upload_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:222:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
222 | { return m_stat[download_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:225:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
225 | { return m_stat[upload_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:227:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
227 | { return m_stat[download_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:230:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
230 | { return m_stat[channel].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:232:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
232 | { return m_stat[channel].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:239:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
239 | m_stat[download_payload].offset(downloaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:240:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
240 | m_stat[upload_payload].offset(uploaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:244:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
244 | { return m_stat[download_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:246:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
246 | { return m_stat[upload_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:248:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
248 | { return m_stat[download_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:250:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
250 | { return m_stat[upload_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:269:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | m_stat[i].clear();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:275:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
275 | return m_stat[i];
| ^~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/socket_io.hpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:61:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
61 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:61:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
61 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:69:38: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
69 | return static_cast(*start++);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:97:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
97 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:97:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
97 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:97:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
97 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:176:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
176 | start += str.size();
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent.hpp:48:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_info.hpp:526:13: warning: unsafe buffer access [-Wunsafe-buffer-usage]
526 | return &m_piece_hashes[idx * 20];
| ^~~~~~~~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent.hpp:51:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_list.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_peer.hpp:40:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/string_ptr.hpp:46:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
46 | m_ptr[str.size()] = '\0';
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent.hpp:64:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_class_set.hpp:36:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_class.hpp:102:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
102 | priority[1] = 1;
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:330:10: warning: unsafe buffer access [-Wunsafe-buffer-usage]
330 | return warning_str[i];
| ^~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:360:6: warning: unsafe buffer access [-Wunsafe-buffer-usage]
360 | + state_str[state];
| ^~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:542:61: warning: unsafe buffer access [-Wunsafe-buffer-usage]
542 | return tracker_alert::message() + " sending announce (" + event_str[event] + ")";
| ^~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:976:10: warning: unsafe buffer access [-Wunsafe-buffer-usage]
976 | return type_str[sock_type_idx(type)];
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:1289:6: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1289 | + nat_type_str[static_cast(map_transport)]
| ^~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:1315:6: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1315 | , nat_type_str[static_cast(map_transport)]
| ^~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:1316:6: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1316 | , protocol_str[static_cast(map_protocol)], external_port);
| ^~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:1344:6: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1344 | , nat_type_str[static_cast(map_transport)]
| ^~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:1409:37: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1409 | , peer_alert::message().c_str(), reason_str[reason]);
| ^~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:1538:6: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1538 | , msgs[kind], str.c_str());
| ^~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:1698:40: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1698 | , print_endpoint(endpoint).c_str(), socket_type_str[socket_type]);
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:1716:37: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1716 | , peer_alert::message().c_str(), socket_type_str[socket_type]);
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:1847:10: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1847 | return names[idx];
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:1929:6: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1929 | , socket_type_str[socket_type]
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:2191:6: warning: unsafe buffer access [-Wunsafe-buffer-usage]
2191 | + mode[direction] + " " + event_type + " [ " + log_message() + " ]";
| ^~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:2421:49: warning: unsafe buffer access [-Wunsafe-buffer-usage]
2421 | std::snprintf(ret, sizeof(ret), "DHT %s: %s", dht_modules[module]
| ^~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:2456:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
2456 | bdecode(pkt.data(), pkt.data() + int(pkt.size()), print, ec, nullptr, 100, 100);
| ~~~~^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:2462:49: warning: unsafe buffer access [-Wunsafe-buffer-usage]
2462 | std::snprintf(buf, sizeof(buf), "%s [%s] %s", prefix[direction]
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:2580:21: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
2580 | char const* end = start + m_response_size;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:2663:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
2663 | ret += flag_names[idx];
| ^~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:2762:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
2762 | v4_ptr += 20;
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/alert.cpp:2770:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
2770 | v6_ptr += 20;
| ^~~~~~
229 warnings generated.
[ 26% 70/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/parse_url.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/parse_url.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/parse_url.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/parse_url.cpp
[ 27% 71/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/peer_class_set.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/peer_class_set.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/peer_class_set.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_class_set.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_class_set.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_class_set.hpp:36:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_class.hpp:102:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
102 | priority[1] = 1;
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_class_set.cpp:41:42: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
41 | if (std::find(m_class.begin(), m_class.begin() + m_size, c)
| ~~~~~~~~^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_class_set.cpp:42:15: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
42 | != m_class.begin() + m_size) return;
| ~~~~~~~~^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_class_set.cpp:55:45: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
55 | return std::find(m_class.begin(), m_class.begin() + m_size, c)
| ~~~~~~~~^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_class_set.cpp:56:15: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
56 | != m_class.begin() + m_size;
| ~~~~~~~~^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_class_set.cpp:61:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
61 | auto const i = std::find(m_class.begin(), m_class.begin() + m_size, c);
| ~~~~~~~~^~~~~~~
6 warnings generated.
[ 27% 72/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/http_stream.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/http_stream.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/http_stream.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_stream.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_stream.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/escape_string.hpp:40:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_stream.cpp:35:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/socket_io.hpp:41:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bencode.hpp:142:4: warning: 'switch' missing 'default' label [-Wswitch-default]
142 | switch(e.type())
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_stream.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/http_stream.hpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/proxy_base.hpp:36:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:176:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
176 | start += str.size();
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_stream.cpp:124:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
124 | status++;
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_stream.cpp:141:51: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
141 | async_read(m_sock, boost::asio::buffer(m_buffer.data() + read_pos, 1)
| ~~~~~~~~~^~~~~~
5 warnings generated.
[ 28% 73/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/platform_util.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/platform_util.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/platform_util.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/platform_util.cpp
[ 28% 74/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/load_torrent.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/load_torrent.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/load_torrent.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/load_torrent.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/load_torrent.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/load_torrent.hpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/add_torrent_params.hpp:49:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_flags.hpp:39:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/load_torrent.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/load_torrent.hpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/add_torrent_params.hpp:46:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:86:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
86 | return (buf()[index / 32] & aux::host_to_network(0x80000000 >> (index & 31))) != 0;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:94:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
94 | buf()[index / 32] &= aux::host_to_network(~(0x80000000 >> (index & 31)));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:100:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
100 | buf()[index / 32] |= aux::host_to_network(0x80000000 >> (index & 31));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:115:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
115 | if (b[i] != 0) return false;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:205:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
205 | ++buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:218:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
218 | --buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ~~~~~~^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:269:21: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | if (size() & 31) buf()[num_words() - 1] &= aux::host_to_network(0xffffffff << (32 - (size() & 31)));
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/load_torrent.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/load_torrent.hpp:39:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_info.hpp:526:13: warning: unsafe buffer access [-Wunsafe-buffer-usage]
526 | return &m_piece_hashes[idx * 20];
| ^~~~~~~~~~~~~~
11 warnings generated.
[ 29% 75/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/instantiate_connection.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/instantiate_connection.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/instantiate_connection.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/instantiate_connection.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/instantiate_connection.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/socket_type.hpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/i2p_stream.hpp:48:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/proxy_settings.hpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/settings_pack.hpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/instantiate_connection.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/socket_type.hpp:39:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/socks5_stream.hpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/proxy_base.hpp:36:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:176:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
176 | start += str.size();
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/instantiate_connection.cpp:35:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_socket_manager.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session_status.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_types.hpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_handle.hpp:59:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_info.hpp:40:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:86:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
86 | return (buf()[index / 32] & aux::host_to_network(0x80000000 >> (index & 31))) != 0;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:94:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
94 | buf()[index / 32] &= aux::host_to_network(~(0x80000000 >> (index & 31)));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:100:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
100 | buf()[index / 32] |= aux::host_to_network(0x80000000 >> (index & 31));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:115:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
115 | if (b[i] != 0) return false;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:205:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
205 | ++buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:218:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
218 | --buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ~~~~~~^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:269:21: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | if (size() & 31) buf()[num_words() - 1] &= aux::host_to_network(0xffffffff << (32 - (size() & 31)));
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/instantiate_connection.cpp:35:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_socket_manager.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session_status.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_types.hpp:43:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:18: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:118:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
118 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:124:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
124 | m_stat[download_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:125:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
125 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:133:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
133 | m_stat[download_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:134:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
134 | m_stat[download_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:142:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
142 | m_stat[upload_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:143:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
143 | m_stat[upload_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:158:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
158 | m_stat[download_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:159:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
159 | m_stat[upload_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:162:43: warning: unsafe buffer access [-Wunsafe-buffer-usage]
162 | int upload_ip_overhead() const { return m_stat[upload_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:163:45: warning: unsafe buffer access [-Wunsafe-buffer-usage]
163 | int download_ip_overhead() const { return m_stat[download_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:169:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
169 | m_stat[i].second_tick(tick_interval_ms);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:174:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
174 | return m_stat[upload_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:175:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
175 | + m_stat[upload_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:176:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
176 | + m_stat[upload_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:181:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
181 | return m_stat[download_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:182:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
182 | + m_stat[download_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:183:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
183 | + m_stat[download_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:188:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
188 | return m_stat[upload_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:189:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
189 | + m_stat[upload_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:190:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
190 | + m_stat[upload_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:195:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
195 | return m_stat[download_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:196:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
196 | + m_stat[download_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:197:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
197 | + m_stat[download_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:202:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
202 | return m_stat[upload_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:203:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
203 | + m_stat[upload_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:204:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
204 | + m_stat[upload_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:209:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
209 | return m_stat[download_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:210:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
210 | + m_stat[download_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:211:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
211 | + m_stat[download_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:215:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
215 | { return m_stat[upload_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:217:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
217 | { return m_stat[download_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:220:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
220 | { return m_stat[upload_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:222:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
222 | { return m_stat[download_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:225:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
225 | { return m_stat[upload_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:227:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
227 | { return m_stat[download_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:230:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
230 | { return m_stat[channel].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:232:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
232 | { return m_stat[channel].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:239:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
239 | m_stat[download_payload].offset(downloaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:240:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
240 | m_stat[upload_payload].offset(uploaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:244:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
244 | { return m_stat[download_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:246:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
246 | { return m_stat[upload_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:248:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
248 | { return m_stat[download_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:250:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
250 | { return m_stat[upload_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:269:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | m_stat[i].clear();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:275:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
275 | return m_stat[i];
| ^~~~~~
59 warnings generated.
[ 30% 76/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/performance_counters.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/performance_counters.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/performance_counters.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/performance_counters.cpp
[ 30% 77/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/puff.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/puff.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/puff.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/puff.cpp
FAILED: CMakeFiles/torrent-rasterbar.dir/src/puff.cpp.o
/usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/puff.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/puff.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/puff.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/puff.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/puff.cpp:85:
/usr/include/c++/v1/csetjmp:39:6: error: "If libc++ starts defining , the __has_include check should move to libc++'s "
39 | # error "If libc++ starts defining , the __has_include check should move to libc++'s "
| ^
1 error generated.
[ 31% 77/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/openssl.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/openssl.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/openssl.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/openssl.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/openssl.cpp:35:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/settings_pack.hpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
1 warning generated.
[ 31% 77/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/path.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/path.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/path.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/path.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/path.cpp:71:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/path.hpp:43:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/storage_utils.hpp:45:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session_types.hpp:37:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/path.cpp:70:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:37:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:131:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
131 | T* end() const noexcept { return m_ptr + m_len; }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/path.cpp:631:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
631 | --sep;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/path.cpp:637:25: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
637 | return std::string(sep + 1, std::size_t(len));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/path.cpp:643:22: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
643 | return std::string(sep + 1);
| ^~~
5 warnings generated.
[ 32% 77/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/part_file.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/part_file.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/part_file.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/part_file.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/part_file.cpp:64:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/part_file.hpp:44:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/file.hpp:43:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/storage_utils.hpp:45:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session_types.hpp:37:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/part_file.cpp:65:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:61:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
61 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:61:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
61 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:97:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
97 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:97:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
97 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:176:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
176 | start += str.size();
| ^~~~~
6 warnings generated.
[ 32% 77/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/i2p_stream.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/i2p_stream.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/i2p_stream.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/i2p_stream.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/i2p_stream.cpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/i2p_stream.hpp:48:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/proxy_settings.hpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/settings_pack.hpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/i2p_stream.cpp:314:3: warning: 'switch' missing 'default' label [-Wswitch-default]
314 | switch (m_state)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/i2p_stream.cpp:410:4: warning: 'switch' missing 'default' label [-Wswitch-default]
410 | switch (m_command)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/i2p_stream.cpp:407:3: warning: 'switch' missing 'default' label [-Wswitch-default]
407 | switch (m_state)
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/i2p_stream.cpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/i2p_stream.hpp:45:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/proxy_base.hpp:36:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:176:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
176 | start += str.size();
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/i2p_stream.cpp:74:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
74 | return messages[ev];
| ^~~~~~~~
6 warnings generated.
[ 33% 77/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/disk_io_thread.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/disk_io_thread.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/disk_io_thread.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_thread.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_thread.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/storage.hpp:44:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/storage_piece_set.hpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/block_cache.hpp:52:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/disk_buffer_pool.hpp:48:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/storage_utils.hpp:45:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session_types.hpp:37:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_thread.cpp:203:44: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
203 | constexpr disk_job_flags_t disk_interface::force_copy;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_thread.cpp:204:44: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
204 | constexpr disk_job_flags_t disk_interface::sequential_access;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_thread.cpp:205:44: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
205 | constexpr disk_job_flags_t disk_interface::volatile_read;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_thread.cpp:206:44: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
206 | constexpr disk_job_flags_t disk_interface::cache_hit;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_thread.cpp:515:3: warning: use of function '__builtin_alloca' is discouraged; there is no way to check for failure but failure may still occur, resulting in a possibly exploitable security vulnerability [-Walloca]
515 | TORRENT_ALLOCA(iov, iovec_t, blocks_to_flush);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:109:46: note: expanded from macro 'TORRENT_ALLOCA'
109 | auto* TORRENT_ALLOCA_tmp = static_cast(TORRENT_ALLOCA_FUN(sizeof(t) * static_cast(TORRENT_ALLOCA_size))); \
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:94:28: note: expanded from macro 'TORRENT_ALLOCA_FUN'
94 | #define TORRENT_ALLOCA_FUN alloca
| ^
/usr/include/stdlib.h:258:20: note: expanded from macro 'alloca'
258 | #define alloca(sz) __builtin_alloca(sz)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_thread.cpp:516:3: warning: use of function '__builtin_alloca' is discouraged; there is no way to check for failure but failure may still occur, resulting in a possibly exploitable security vulnerability [-Walloca]
516 | TORRENT_ALLOCA(flushing, int, blocks_to_flush);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:109:46: note: expanded from macro 'TORRENT_ALLOCA'
109 | auto* TORRENT_ALLOCA_tmp = static_cast(TORRENT_ALLOCA_FUN(sizeof(t) * static_cast(TORRENT_ALLOCA_size))); \
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:94:28: note: expanded from macro 'TORRENT_ALLOCA_FUN'
94 | #define TORRENT_ALLOCA_FUN alloca
| ^
/usr/include/stdlib.h:258:20: note: expanded from macro 'alloca'
258 | #define alloca(sz) __builtin_alloca(sz)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_thread.cpp:518:3: warning: use of function '__builtin_alloca' is discouraged; there is no way to check for failure but failure may still occur, resulting in a possibly exploitable security vulnerability [-Walloca]
518 | TORRENT_ALLOCA(iovec_offset, int, cont_pieces + 1);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:109:46: note: expanded from macro 'TORRENT_ALLOCA'
109 | auto* TORRENT_ALLOCA_tmp = static_cast(TORRENT_ALLOCA_FUN(sizeof(t) * static_cast(TORRENT_ALLOCA_size))); \
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:94:28: note: expanded from macro 'TORRENT_ALLOCA_FUN'
94 | #define TORRENT_ALLOCA_FUN alloca
| ^
/usr/include/stdlib.h:258:20: note: expanded from macro 'alloca'
258 | #define alloca(sz) __builtin_alloca(sz)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_thread.cpp:524:3: warning: use of function '__builtin_alloca' is discouraged; there is no way to check for failure but failure may still occur, resulting in a possibly exploitable security vulnerability [-Walloca]
524 | TORRENT_ALLOCA(refcount_pieces, int, cont_pieces);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:109:46: note: expanded from macro 'TORRENT_ALLOCA'
109 | auto* TORRENT_ALLOCA_tmp = static_cast(TORRENT_ALLOCA_FUN(sizeof(t) * static_cast(TORRENT_ALLOCA_size))); \
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:94:28: note: expanded from macro 'TORRENT_ALLOCA_FUN'
94 | #define TORRENT_ALLOCA_FUN alloca
| ^
/usr/include/stdlib.h:258:20: note: expanded from macro 'alloca'
258 | #define alloca(sz) __builtin_alloca(sz)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_thread.cpp:815:3: warning: use of function '__builtin_alloca' is discouraged; there is no way to check for failure but failure may still occur, resulting in a possibly exploitable security vulnerability [-Walloca]
815 | TORRENT_ALLOCA(iov, iovec_t, pe->blocks_in_piece);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:109:46: note: expanded from macro 'TORRENT_ALLOCA'
109 | auto* TORRENT_ALLOCA_tmp = static_cast(TORRENT_ALLOCA_FUN(sizeof(t) * static_cast(TORRENT_ALLOCA_size))); \
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:94:28: note: expanded from macro 'TORRENT_ALLOCA_FUN'
94 | #define TORRENT_ALLOCA_FUN alloca
| ^
/usr/include/stdlib.h:258:20: note: expanded from macro 'alloca'
258 | #define alloca(sz) __builtin_alloca(sz)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_thread.cpp:816:3: warning: use of function '__builtin_alloca' is discouraged; there is no way to check for failure but failure may still occur, resulting in a possibly exploitable security vulnerability [-Walloca]
816 | TORRENT_ALLOCA(flushing, int, pe->blocks_in_piece);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:109:46: note: expanded from macro 'TORRENT_ALLOCA'
109 | auto* TORRENT_ALLOCA_tmp = static_cast(TORRENT_ALLOCA_FUN(sizeof(t) * static_cast(TORRENT_ALLOCA_size))); \
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:94:28: note: expanded from macro 'TORRENT_ALLOCA_FUN'
94 | #define TORRENT_ALLOCA_FUN alloca
| ^
/usr/include/stdlib.h:258:20: note: expanded from macro 'alloca'
258 | #define alloca(sz) __builtin_alloca(sz)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_thread.cpp:1051:3: warning: use of function '__builtin_alloca' is discouraged; there is no way to check for failure but failure may still occur, resulting in a possibly exploitable security vulnerability [-Walloca]
1051 | TORRENT_ALLOCA(to_flush, cached_piece_entry*, 200);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:109:46: note: expanded from macro 'TORRENT_ALLOCA'
109 | auto* TORRENT_ALLOCA_tmp = static_cast(TORRENT_ALLOCA_FUN(sizeof(t) * static_cast(TORRENT_ALLOCA_size))); \
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:94:28: note: expanded from macro 'TORRENT_ALLOCA_FUN'
94 | #define TORRENT_ALLOCA_FUN alloca
| ^
/usr/include/stdlib.h:258:20: note: expanded from macro 'alloca'
258 | #define alloca(sz) __builtin_alloca(sz)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_thread.cpp:1306:3: warning: use of function '__builtin_alloca' is discouraged; there is no way to check for failure but failure may still occur, resulting in a possibly exploitable security vulnerability [-Walloca]
1306 | TORRENT_ALLOCA(iov, iovec_t, iov_len);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:109:46: note: expanded from macro 'TORRENT_ALLOCA'
109 | auto* TORRENT_ALLOCA_tmp = static_cast(TORRENT_ALLOCA_FUN(sizeof(t) * static_cast(TORRENT_ALLOCA_size))); \
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:94:28: note: expanded from macro 'TORRENT_ALLOCA_FUN'
94 | #define TORRENT_ALLOCA_FUN alloca
| ^
/usr/include/stdlib.h:258:20: note: expanded from macro 'alloca'
258 | #define alloca(sz) __builtin_alloca(sz)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_thread.cpp:1635:3: warning: 'switch' missing 'default' label [-Wswitch-default]
1635 | switch (ret)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_thread.cpp:2308:3: warning: use of function '__builtin_alloca' is discouraged; there is no way to check for failure but failure may still occur, resulting in a possibly exploitable security vulnerability [-Walloca]
2308 | TORRENT_ALLOCA(locked_blocks, int, blocks_in_piece);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:109:46: note: expanded from macro 'TORRENT_ALLOCA'
109 | auto* TORRENT_ALLOCA_tmp = static_cast(TORRENT_ALLOCA_FUN(sizeof(t) * static_cast(TORRENT_ALLOCA_size))); \
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:94:28: note: expanded from macro 'TORRENT_ALLOCA_FUN'
94 | #define TORRENT_ALLOCA_FUN alloca
| ^
/usr/include/stdlib.h:258:20: note: expanded from macro 'alloca'
258 | #define alloca(sz) __builtin_alloca(sz)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_thread.cpp:2344:4: warning: use of function '__builtin_alloca' is discouraged; there is no way to check for failure but failure may still occur, resulting in a possibly exploitable security vulnerability [-Walloca]
2344 | TORRENT_ALLOCA(iov, iovec_t, blocks_left);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:109:46: note: expanded from macro 'TORRENT_ALLOCA'
109 | auto* TORRENT_ALLOCA_tmp = static_cast(TORRENT_ALLOCA_FUN(sizeof(t) * static_cast(TORRENT_ALLOCA_size))); \
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:94:28: note: expanded from macro 'TORRENT_ALLOCA_FUN'
94 | #define TORRENT_ALLOCA_FUN alloca
| ^
/usr/include/stdlib.h:258:20: note: expanded from macro 'alloca'
258 | #define alloca(sz) __builtin_alloca(sz)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_thread.cpp:3388:6: warning: 'switch' missing 'default' label [-Wswitch-default]
3388 | switch (state)
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_thread.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/storage.hpp:44:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/storage_piece_set.hpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/block_cache.hpp:49:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/hasher.hpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/sha1_hash.hpp:49:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/ffs.hpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:153:13: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
153 | return { data() + offset, size() - offset };
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:131:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
131 | T* end() const noexcept { return m_ptr + m_len; }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:153:13: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
153 | return { data() + offset, size() - offset };
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:168:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
168 | return m_ptr[idx];
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:131:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
131 | T* end() const noexcept { return m_ptr + m_len; }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:131:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
131 | T* end() const noexcept { return m_ptr + m_len; }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:153:13: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
153 | return { data() + offset, size() - offset };
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:168:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
168 | return m_ptr[idx];
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:168:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
168 | return m_ptr[idx];
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:131:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
131 | T* end() const noexcept { return m_ptr + m_len; }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:168:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
168 | return m_ptr[idx];
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_thread.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/storage.hpp:44:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/storage_piece_set.hpp:41:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/block_cache.hpp:381:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
381 | { return m_lru[cached_piece_entry::write_lru].iterate(); }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/block_cache.hpp:383:45: warning: unsafe buffer access [-Wunsafe-buffer-usage]
383 | int num_write_lru_pieces() const { return m_lru[cached_piece_entry::write_lru].size(); }
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_thread.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/storage.hpp:48:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:86:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
86 | return (buf()[index / 32] & aux::host_to_network(0x80000000 >> (index & 31))) != 0;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:94:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
94 | buf()[index / 32] &= aux::host_to_network(~(0x80000000 >> (index & 31)));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:100:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
100 | buf()[index / 32] |= aux::host_to_network(0x80000000 >> (index & 31));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:115:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
115 | if (b[i] != 0) return false;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:205:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
205 | ++buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:218:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
218 | --buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ~~~~~~^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:269:21: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | if (size() & 31) buf()[num_words() - 1] &= aux::host_to_network(0xffffffff << (32 - (size() & 31)));
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_thread.cpp:37:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:50:29: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
50 | for (; current != last; ++current) {
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:54:30: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
54 | for (; first != current; ++first) {
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:50:29: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
50 | for (; current != last; ++current) {
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:54:30: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
54 | for (; first != current; ++first) {
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:50:29: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
50 | for (; current != last; ++current) {
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:54:30: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
54 | for (; first != current; ++first) {
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_thread.cpp:42:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_info.hpp:526:13: warning: unsafe buffer access [-Wunsafe-buffer-usage]
526 | return &m_piece_hashes[idx * 20];
| ^~~~~~~~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_thread.cpp:47:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_types.hpp:43:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:18: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:118:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
118 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:124:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
124 | m_stat[download_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:125:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
125 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:133:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
133 | m_stat[download_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:134:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
134 | m_stat[download_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:142:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
142 | m_stat[upload_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:143:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
143 | m_stat[upload_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:158:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
158 | m_stat[download_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:159:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
159 | m_stat[upload_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:162:43: warning: unsafe buffer access [-Wunsafe-buffer-usage]
162 | int upload_ip_overhead() const { return m_stat[upload_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:163:45: warning: unsafe buffer access [-Wunsafe-buffer-usage]
163 | int download_ip_overhead() const { return m_stat[download_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:169:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
169 | m_stat[i].second_tick(tick_interval_ms);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:174:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
174 | return m_stat[upload_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:175:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
175 | + m_stat[upload_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:176:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
176 | + m_stat[upload_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:181:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
181 | return m_stat[download_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:182:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
182 | + m_stat[download_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:183:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
183 | + m_stat[download_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:188:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
188 | return m_stat[upload_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:189:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
189 | + m_stat[upload_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:190:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
190 | + m_stat[upload_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:195:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
195 | return m_stat[download_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:196:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
196 | + m_stat[download_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:197:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
197 | + m_stat[download_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:202:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
202 | return m_stat[upload_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:203:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
203 | + m_stat[upload_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:204:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
204 | + m_stat[upload_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:209:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
209 | return m_stat[download_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:210:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
210 | + m_stat[download_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:211:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
211 | + m_stat[download_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:215:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
215 | { return m_stat[upload_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:217:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
217 | { return m_stat[download_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:220:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
220 | { return m_stat[upload_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:222:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
222 | { return m_stat[download_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:225:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
225 | { return m_stat[upload_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:227:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
227 | { return m_stat[download_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:230:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
230 | { return m_stat[channel].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:232:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
232 | { return m_stat[channel].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:239:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
239 | m_stat[download_payload].offset(downloaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:240:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
240 | m_stat[upload_payload].offset(uploaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:244:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
244 | { return m_stat[download_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:246:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
246 | { return m_stat[upload_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:248:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
248 | { return m_stat[download_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:250:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
250 | { return m_stat[upload_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:269:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | m_stat[i].clear();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:275:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
275 | return m_stat[i];
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_thread.cpp:761:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
761 | flushing[i] -= block_offset;
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/disk_io_thread.cpp:2719:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
2719 | ret->num_fence_jobs[i] = int(m_stats_counters[counters::num_fenced_read + i]);
| ^~~~~~~~~~~~~~~~~~~
96 warnings generated.
[ 34% 77/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/http_tracker_connection.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/http_tracker_connection.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/http_tracker_connection.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_tracker_connection.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_tracker_connection.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/socket_io.hpp:41:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bencode.hpp:142:4: warning: 'switch' missing 'default' label [-Wswitch-default]
142 | switch(e.type())
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_tracker_connection.cpp:45:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/tracker_manager.hpp:73:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/udp_socket.hpp:39:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/proxy_settings.hpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/settings_pack.hpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_tracker_connection.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/socket_io.hpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:61:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
61 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:61:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
61 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:69:38: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
69 | return static_cast(*start++);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:176:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
176 | start += str.size();
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_tracker_connection.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/socket_io.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bdecode.hpp:46:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:131:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
131 | T* end() const noexcept { return m_ptr + m_len; }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_tracker_connection.cpp:144:56: warning: unsafe buffer access [-Wunsafe-buffer-usage]
144 | , (tracker_req().event != tracker_request::none) ? event_string[tracker_req().event - 1] : ""
| ^~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_tracker_connection.cpp:473:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
473 | std::copy(i.string_ptr(), i.string_ptr() + 20, ret.pid.begin());
| ~~^~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_tracker_connection.cpp:582:44: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
582 | p.hostname = base32encode(std::string(peers + i, 32), string::i2p);
| ^~~~~
10 warnings generated.
[ 34% 77/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/ip_voter.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/ip_voter.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/ip_voter.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/ip_voter.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/ip_voter.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/ip_voter.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_interface.hpp:46:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_udp_sockets.hpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_socket_manager.hpp:39:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/socket_type.hpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/i2p_stream.hpp:48:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/proxy_settings.hpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/settings_pack.hpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/ip_voter.cpp:35:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/socket_io.hpp:41:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bencode.hpp:142:4: warning: 'switch' missing 'default' label [-Wswitch-default]
142 | switch(e.type())
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/ip_voter.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/ip_voter.hpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bloom_filter.hpp:36:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/sha1_hash.hpp:249:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
249 | return reinterpret_cast(m_number.data())[i];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/ip_voter.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/ip_voter.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_interface.hpp:46:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_udp_sockets.hpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_socket_manager.hpp:39:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/socket_type.hpp:39:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/socks5_stream.hpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/proxy_base.hpp:36:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:176:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
176 | start += str.size();
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/ip_voter.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/ip_voter.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_interface.hpp:46:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_udp_sockets.hpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_socket_manager.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session_status.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_types.hpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_handle.hpp:59:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_info.hpp:40:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:86:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
86 | return (buf()[index / 32] & aux::host_to_network(0x80000000 >> (index & 31))) != 0;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:94:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
94 | buf()[index / 32] &= aux::host_to_network(~(0x80000000 >> (index & 31)));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:100:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
100 | buf()[index / 32] |= aux::host_to_network(0x80000000 >> (index & 31));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:115:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
115 | if (b[i] != 0) return false;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:205:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
205 | ++buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:218:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
218 | --buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ~~~~~~^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:269:21: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | if (size() & 31) buf()[num_words() - 1] &= aux::host_to_network(0xffffffff << (32 - (size() & 31)));
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/ip_voter.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/ip_voter.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_interface.hpp:46:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_udp_sockets.hpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_socket_manager.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session_status.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_types.hpp:43:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:18: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:118:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
118 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:124:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
124 | m_stat[download_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:125:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
125 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:133:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
133 | m_stat[download_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:134:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
134 | m_stat[download_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:142:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
142 | m_stat[upload_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:143:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
143 | m_stat[upload_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:158:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
158 | m_stat[download_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:159:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
159 | m_stat[upload_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:162:43: warning: unsafe buffer access [-Wunsafe-buffer-usage]
162 | int upload_ip_overhead() const { return m_stat[upload_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:163:45: warning: unsafe buffer access [-Wunsafe-buffer-usage]
163 | int download_ip_overhead() const { return m_stat[download_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:169:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
169 | m_stat[i].second_tick(tick_interval_ms);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:174:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
174 | return m_stat[upload_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:175:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
175 | + m_stat[upload_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:176:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
176 | + m_stat[upload_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:181:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
181 | return m_stat[download_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:182:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
182 | + m_stat[download_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:183:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
183 | + m_stat[download_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:188:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
188 | return m_stat[upload_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:189:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
189 | + m_stat[upload_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:190:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
190 | + m_stat[upload_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:195:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
195 | return m_stat[download_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:196:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
196 | + m_stat[download_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:197:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
197 | + m_stat[download_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:202:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
202 | return m_stat[upload_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:203:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
203 | + m_stat[upload_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:204:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
204 | + m_stat[upload_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:209:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
209 | return m_stat[download_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:210:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
210 | + m_stat[download_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:211:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
211 | + m_stat[download_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:215:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
215 | { return m_stat[upload_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:217:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
217 | { return m_stat[download_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:220:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
220 | { return m_stat[upload_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:222:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
222 | { return m_stat[download_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:225:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
225 | { return m_stat[upload_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:227:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
227 | { return m_stat[download_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:230:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
230 | { return m_stat[channel].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:232:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
232 | { return m_stat[channel].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:239:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
239 | m_stat[download_payload].offset(downloaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:240:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
240 | m_stat[upload_payload].offset(uploaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:244:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
244 | { return m_stat[download_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:246:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
246 | { return m_stat[upload_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:248:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
248 | { return m_stat[download_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:250:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
250 | { return m_stat[upload_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:269:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | m_stat[i].clear();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:275:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
275 | return m_stat[i];
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/ip_voter.cpp:188:17: warning: unsafe buffer access [-Wunsafe-buffer-usage]
188 | address ext = m_addresses[is_local(ip)][ip.is_v6()];
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/ip_voter.cpp:188:17: warning: unsafe buffer access [-Wunsafe-buffer-usage]
188 | address ext = m_addresses[is_local(ip)][ip.is_v6()];
| ^~~~~~~~~~~
63 warnings generated.
[ 35% 77/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/listen_socket_handle.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/listen_socket_handle.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/listen_socket_handle.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/listen_socket_handle.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/listen_socket_handle.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_impl.hpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_settings.hpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/settings_pack.hpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/listen_socket_handle.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_impl.hpp:70:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/socket_io.hpp:41:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bencode.hpp:142:4: warning: 'switch' missing 'default' label [-Wswitch-default]
142 | switch(e.type())
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/listen_socket_handle.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_impl.hpp:83:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/portmap.hpp:90:3: warning: 'switch' missing 'default' label [-Wswitch-default]
90 | switch (act)
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/listen_socket_handle.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_impl.hpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_interface.hpp:46:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_udp_sockets.hpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_socket_manager.hpp:39:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/socket_type.hpp:39:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/socks5_stream.hpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/proxy_base.hpp:36:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:176:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
176 | start += str.size();
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/listen_socket_handle.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_impl.hpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_interface.hpp:46:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_udp_sockets.hpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_socket_manager.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session_status.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_types.hpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_handle.hpp:59:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_info.hpp:40:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:86:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
86 | return (buf()[index / 32] & aux::host_to_network(0x80000000 >> (index & 31))) != 0;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:94:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
94 | buf()[index / 32] &= aux::host_to_network(~(0x80000000 >> (index & 31)));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:100:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
100 | buf()[index / 32] |= aux::host_to_network(0x80000000 >> (index & 31));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:115:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
115 | if (b[i] != 0) return false;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:205:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
205 | ++buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:218:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
218 | --buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ~~~~~~^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:269:21: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | if (size() & 31) buf()[num_words() - 1] &= aux::host_to_network(0xffffffff << (32 - (size() & 31)));
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/listen_socket_handle.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_impl.hpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_interface.hpp:46:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_udp_sockets.hpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_socket_manager.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session_status.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_types.hpp:43:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:18: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:118:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
118 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:124:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
124 | m_stat[download_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:125:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
125 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:133:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
133 | m_stat[download_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:134:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
134 | m_stat[download_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:142:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
142 | m_stat[upload_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:143:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
143 | m_stat[upload_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:158:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
158 | m_stat[download_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:159:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
159 | m_stat[upload_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:162:43: warning: unsafe buffer access [-Wunsafe-buffer-usage]
162 | int upload_ip_overhead() const { return m_stat[upload_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:163:45: warning: unsafe buffer access [-Wunsafe-buffer-usage]
163 | int download_ip_overhead() const { return m_stat[download_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:169:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
169 | m_stat[i].second_tick(tick_interval_ms);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:174:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
174 | return m_stat[upload_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:175:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
175 | + m_stat[upload_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:176:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
176 | + m_stat[upload_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:181:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
181 | return m_stat[download_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:182:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
182 | + m_stat[download_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:183:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
183 | + m_stat[download_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:188:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
188 | return m_stat[upload_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:189:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
189 | + m_stat[upload_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:190:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
190 | + m_stat[upload_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:195:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
195 | return m_stat[download_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:196:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
196 | + m_stat[download_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:197:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
197 | + m_stat[download_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:202:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
202 | return m_stat[upload_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:203:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
203 | + m_stat[upload_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:204:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
204 | + m_stat[upload_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:209:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
209 | return m_stat[download_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:210:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
210 | + m_stat[download_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:211:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
211 | + m_stat[download_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:215:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
215 | { return m_stat[upload_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:217:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
217 | { return m_stat[download_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:220:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
220 | { return m_stat[upload_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:222:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
222 | { return m_stat[download_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:225:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
225 | { return m_stat[upload_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:227:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
227 | { return m_stat[download_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:230:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
230 | { return m_stat[channel].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:232:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
232 | { return m_stat[channel].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:239:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
239 | m_stat[download_payload].offset(downloaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:240:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
240 | m_stat[upload_payload].offset(uploaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:244:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
244 | { return m_stat[download_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:246:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
246 | { return m_stat[upload_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:248:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
248 | { return m_stat[download_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:250:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
250 | { return m_stat[upload_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:269:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | m_stat[i].clear();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:275:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
275 | return m_stat[i];
| ^~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/listen_socket_handle.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_impl.hpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_peer.hpp:40:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/string_ptr.hpp:46:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
46 | m_ptr[str.size()] = '\0';
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/listen_socket_handle.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_impl.hpp:50:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session.hpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session_handle.hpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/disk_io_thread.hpp:39:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/storage.hpp:44:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/storage_piece_set.hpp:41:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/block_cache.hpp:381:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
381 | { return m_lru[cached_piece_entry::write_lru].iterate(); }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/block_cache.hpp:383:45: warning: unsafe buffer access [-Wunsafe-buffer-usage]
383 | int num_write_lru_pieces() const { return m_lru[cached_piece_entry::write_lru].size(); }
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/listen_socket_handle.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_impl.hpp:50:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session.hpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session_handle.hpp:43:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_class.hpp:102:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
102 | priority[1] = 1;
| ^~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/listen_socket_handle.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_impl.hpp:50:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session.hpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session_handle.hpp:50:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/kademlia/dht_storage.hpp:39:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/kademlia/types.hpp:46:18: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
46 | { std::copy(b, b + len, bytes.begin()); }
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/kademlia/types.hpp:57:18: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
57 | { std::copy(b, b + len, bytes.begin()); }
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/kademlia/types.hpp:68:18: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
68 | { std::copy(b, b + len, bytes.begin()); }
| ^
68 warnings generated.
[ 35% 77/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/proxy_settings.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/proxy_settings.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/proxy_settings.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/proxy_settings.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/proxy_settings.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/proxy_settings.hpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/settings_pack.hpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
1 warning generated.
[ 36% 77/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/peer_info.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/peer_info.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/peer_info.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_info.hpp:43:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:44:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
44 | constexpr peer_flags_t peer_info::interesting;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:45:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
45 | constexpr peer_flags_t peer_info::choked;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:46:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
46 | constexpr peer_flags_t peer_info::remote_interested;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:47:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
47 | constexpr peer_flags_t peer_info::remote_choked;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:48:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
48 | constexpr peer_flags_t peer_info::supports_extensions;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:49:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
49 | constexpr peer_flags_t peer_info::local_connection;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:50:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
50 | constexpr peer_flags_t peer_info::handshake;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:51:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
51 | constexpr peer_flags_t peer_info::connecting;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:53:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
53 | constexpr peer_flags_t peer_info::queued;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:55:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
55 | constexpr peer_flags_t peer_info::on_parole;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:56:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
56 | constexpr peer_flags_t peer_info::seed;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:57:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
57 | constexpr peer_flags_t peer_info::optimistic_unchoke;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:58:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
58 | constexpr peer_flags_t peer_info::snubbed;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:59:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
59 | constexpr peer_flags_t peer_info::upload_only;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:60:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
60 | constexpr peer_flags_t peer_info::endgame_mode;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:61:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
61 | constexpr peer_flags_t peer_info::holepunched;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:62:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
62 | constexpr peer_flags_t peer_info::i2p_socket;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:63:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
63 | constexpr peer_flags_t peer_info::utp_socket;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:64:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
64 | constexpr peer_flags_t peer_info::ssl_socket;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:65:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
65 | constexpr peer_flags_t peer_info::rc4_encrypted;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:66:36: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
66 | constexpr peer_flags_t peer_info::plaintext_encrypted;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:68:43: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
68 | constexpr peer_source_flags_t peer_info::tracker;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:69:43: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
69 | constexpr peer_source_flags_t peer_info::dht;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:70:43: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
70 | constexpr peer_source_flags_t peer_info::pex;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:71:43: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
71 | constexpr peer_source_flags_t peer_info::lsd;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:72:43: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
72 | constexpr peer_source_flags_t peer_info::resume_data;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:73:43: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
73 | constexpr peer_source_flags_t peer_info::incoming;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:75:47: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
75 | constexpr bandwidth_state_flags_t peer_info::bw_idle;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:76:47: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
76 | constexpr bandwidth_state_flags_t peer_info::bw_limit;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:77:47: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
77 | constexpr bandwidth_state_flags_t peer_info::bw_network;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:78:47: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
78 | constexpr bandwidth_state_flags_t peer_info::bw_disk;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:81:47: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
81 | constexpr bandwidth_state_flags_t peer_info::bw_torrent;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:82:47: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
82 | constexpr bandwidth_state_flags_t peer_info::bw_global;
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_info.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_info.hpp:40:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:86:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
86 | return (buf()[index / 32] & aux::host_to_network(0x80000000 >> (index & 31))) != 0;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:94:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
94 | buf()[index / 32] &= aux::host_to_network(~(0x80000000 >> (index & 31)));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:100:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
100 | buf()[index / 32] |= aux::host_to_network(0x80000000 >> (index & 31));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:115:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
115 | if (b[i] != 0) return false;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:205:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
205 | ++buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:218:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
218 | --buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ~~~~~~^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:269:21: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | if (size() & 31) buf()[num_words() - 1] &= aux::host_to_network(0xffffffff << (32 - (size() & 31)));
| ^~~~~
43 warnings generated.
[ 36% 77/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/peer_class.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/peer_class.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/peer_class.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_class.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_class.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert.hpp:66:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_class.cpp:33:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_class.hpp:102:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
102 | priority[1] = 1;
| ^~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_class.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:37:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:107:45: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
107 | std::copy(initialize.begin(), initialize.begin()
| ~~~~~~~~~~~^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:142:76: warning: unsafe buffer access [-Wunsafe-buffer-usage]
142 | char& operator[](index_type const i) { TORRENT_ASSERT(i < size()); return m_begin[i]; }
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:143:93: warning: unsafe buffer access [-Wunsafe-buffer-usage]
143 | char const& operator[](difference_type const i) const { TORRENT_ASSERT(i < size()); return m_begin[i]; }
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:147:23: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
147 | char* end() { return m_begin + m_size; }
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:148:35: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
148 | char const* end() const { return m_begin + m_size; }
| ^~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_class.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:39:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:18: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:118:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
118 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:124:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
124 | m_stat[download_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:125:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
125 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:133:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
133 | m_stat[download_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:134:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
134 | m_stat[download_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:142:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
142 | m_stat[upload_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:143:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
143 | m_stat[upload_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:158:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
158 | m_stat[download_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:159:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
159 | m_stat[upload_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:162:43: warning: unsafe buffer access [-Wunsafe-buffer-usage]
162 | int upload_ip_overhead() const { return m_stat[upload_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:163:45: warning: unsafe buffer access [-Wunsafe-buffer-usage]
163 | int download_ip_overhead() const { return m_stat[download_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:169:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
169 | m_stat[i].second_tick(tick_interval_ms);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:174:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
174 | return m_stat[upload_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:175:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
175 | + m_stat[upload_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:176:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
176 | + m_stat[upload_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:181:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
181 | return m_stat[download_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:182:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
182 | + m_stat[download_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:183:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
183 | + m_stat[download_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:188:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
188 | return m_stat[upload_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:189:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
189 | + m_stat[upload_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:190:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
190 | + m_stat[upload_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:195:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
195 | return m_stat[download_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:196:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
196 | + m_stat[download_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:197:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
197 | + m_stat[download_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:202:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
202 | return m_stat[upload_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:203:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
203 | + m_stat[upload_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:204:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
204 | + m_stat[upload_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:209:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
209 | return m_stat[download_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:210:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
210 | + m_stat[download_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:211:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
211 | + m_stat[download_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:215:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
215 | { return m_stat[upload_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:217:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
217 | { return m_stat[download_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:220:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
220 | { return m_stat[upload_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:222:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
222 | { return m_stat[download_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:225:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
225 | { return m_stat[upload_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:227:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
227 | { return m_stat[download_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:230:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
230 | { return m_stat[channel].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:232:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
232 | { return m_stat[channel].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:239:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
239 | m_stat[download_payload].offset(downloaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:240:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
240 | m_stat[upload_payload].offset(uploaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:244:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
244 | { return m_stat[download_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:246:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
246 | { return m_stat[upload_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:248:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
248 | { return m_stat[download_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:250:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
250 | { return m_stat[upload_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:269:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | m_stat[i].clear();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:275:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
275 | return m_stat[i];
| ^~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_class.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:47:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:86:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
86 | return (buf()[index / 32] & aux::host_to_network(0x80000000 >> (index & 31))) != 0;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:94:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
94 | buf()[index / 32] &= aux::host_to_network(~(0x80000000 >> (index & 31)));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:100:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
100 | buf()[index / 32] |= aux::host_to_network(0x80000000 >> (index & 31));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:115:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
115 | if (b[i] != 0) return false;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:205:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
205 | ++buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:218:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
218 | --buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ~~~~~~^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:269:21: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | if (size() & 31) buf()[num_words() - 1] &= aux::host_to_network(0xffffffff << (32 - (size() & 31)));
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_class.cpp:34:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:1188:8: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1188 | if (m_pc.m_channel_state[peer_connection::upload_channel] & peer_info::bw_network)
| ^~~~~~~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:1194:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1194 | m_pc.m_channel_state[peer_connection::upload_channel] |= peer_info::bw_network;
| ^~~~~~~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:1204:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1204 | m_pc.m_channel_state[peer_connection::upload_channel] &= ~peer_info::bw_network;
| ^~~~~~~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_class.cpp:43:3: warning: unsafe buffer access [-Wunsafe-buffer-usage]
43 | channel[peer_connection::upload_channel].throttle(limit);
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_class.cpp:51:3: warning: unsafe buffer access [-Wunsafe-buffer-usage]
51 | channel[peer_connection::download_channel].throttle(limit);
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_class.cpp:59:23: warning: unsafe buffer access [-Wunsafe-buffer-usage]
59 | pci->upload_limit = channel[peer_connection::upload_channel].throttle();
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_class.cpp:60:25: warning: unsafe buffer access [-Wunsafe-buffer-usage]
60 | pci->download_limit = channel[peer_connection::download_channel].throttle();
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_class.cpp:61:26: warning: unsafe buffer access [-Wunsafe-buffer-usage]
61 | pci->upload_priority = priority[peer_connection::upload_channel];
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_class.cpp:62:28: warning: unsafe buffer access [-Wunsafe-buffer-usage]
62 | pci->download_priority = priority[peer_connection::download_channel];
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_class.cpp:72:3: warning: unsafe buffer access [-Wunsafe-buffer-usage]
72 | priority[peer_connection::upload_channel] = std::max(1, std::min(255, pci->upload_priority));
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_class.cpp:73:3: warning: unsafe buffer access [-Wunsafe-buffer-usage]
73 | priority[peer_connection::download_channel] = std::max(1, std::min(255, pci->download_priority));
| ^~~~~~~~
75 warnings generated.
[ 37% 77/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/http_seed_connection.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/http_seed_connection.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/http_seed_connection.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_seed_connection.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_seed_connection.cpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/http_seed_connection.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/web_connection_base.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert.hpp:66:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_seed_connection.cpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_impl.hpp:70:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/socket_io.hpp:41:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bencode.hpp:142:4: warning: 'switch' missing 'default' label [-Wswitch-default]
142 | switch(e.type())
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_seed_connection.cpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_impl.hpp:83:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/portmap.hpp:90:3: warning: 'switch' missing 'default' label [-Wswitch-default]
90 | switch (act)
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_seed_connection.cpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/http_seed_connection.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/web_connection_base.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:43:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:131:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
131 | T* end() const noexcept { return m_ptr + m_len; }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:153:13: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
153 | return { data() + offset, size() - offset };
| ^~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_seed_connection.cpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/http_seed_connection.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/web_connection_base.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:37:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:107:45: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
107 | std::copy(initialize.begin(), initialize.begin()
| ~~~~~~~~~~~^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:142:76: warning: unsafe buffer access [-Wunsafe-buffer-usage]
142 | char& operator[](index_type const i) { TORRENT_ASSERT(i < size()); return m_begin[i]; }
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:143:93: warning: unsafe buffer access [-Wunsafe-buffer-usage]
143 | char const& operator[](difference_type const i) const { TORRENT_ASSERT(i < size()); return m_begin[i]; }
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:147:23: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
147 | char* end() { return m_begin + m_size; }
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:148:35: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
148 | char const* end() const { return m_begin + m_size; }
| ^~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_seed_connection.cpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/http_seed_connection.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/web_connection_base.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:39:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:18: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:118:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
118 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:124:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
124 | m_stat[download_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:125:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
125 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:133:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
133 | m_stat[download_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:134:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
134 | m_stat[download_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:142:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
142 | m_stat[upload_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:143:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
143 | m_stat[upload_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:158:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
158 | m_stat[download_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:159:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
159 | m_stat[upload_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:162:43: warning: unsafe buffer access [-Wunsafe-buffer-usage]
162 | int upload_ip_overhead() const { return m_stat[upload_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:163:45: warning: unsafe buffer access [-Wunsafe-buffer-usage]
163 | int download_ip_overhead() const { return m_stat[download_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:169:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
169 | m_stat[i].second_tick(tick_interval_ms);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:174:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
174 | return m_stat[upload_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:175:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
175 | + m_stat[upload_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:176:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
176 | + m_stat[upload_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:181:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
181 | return m_stat[download_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:182:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
182 | + m_stat[download_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:183:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
183 | + m_stat[download_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:188:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
188 | return m_stat[upload_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:189:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
189 | + m_stat[upload_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:190:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
190 | + m_stat[upload_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:195:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
195 | return m_stat[download_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:196:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
196 | + m_stat[download_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:197:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
197 | + m_stat[download_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:202:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
202 | return m_stat[upload_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:203:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
203 | + m_stat[upload_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:204:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
204 | + m_stat[upload_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:209:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
209 | return m_stat[download_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:210:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
210 | + m_stat[download_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:211:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
211 | + m_stat[download_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:215:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
215 | { return m_stat[upload_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:217:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
217 | { return m_stat[download_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:220:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
220 | { return m_stat[upload_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:222:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
222 | { return m_stat[download_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:225:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
225 | { return m_stat[upload_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:227:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
227 | { return m_stat[download_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:230:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
230 | { return m_stat[channel].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:232:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
232 | { return m_stat[channel].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:239:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
239 | m_stat[download_payload].offset(downloaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:240:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
240 | m_stat[upload_payload].offset(uploaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:244:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
244 | { return m_stat[download_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:246:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
246 | { return m_stat[upload_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:248:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
248 | { return m_stat[download_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:250:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
250 | { return m_stat[upload_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:269:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | m_stat[i].clear();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:275:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
275 | return m_stat[i];
| ^~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_seed_connection.cpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/http_seed_connection.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/web_connection_base.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:47:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:86:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
86 | return (buf()[index / 32] & aux::host_to_network(0x80000000 >> (index & 31))) != 0;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:94:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
94 | buf()[index / 32] &= aux::host_to_network(~(0x80000000 >> (index & 31)));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:100:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
100 | buf()[index / 32] |= aux::host_to_network(0x80000000 >> (index & 31));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:115:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
115 | if (b[i] != 0) return false;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:205:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
205 | ++buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:218:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
218 | --buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ~~~~~~^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:269:21: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | if (size() & 31) buf()[num_words() - 1] &= aux::host_to_network(0xffffffff << (32 - (size() & 31)));
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_seed_connection.cpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/http_seed_connection.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/web_connection_base.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:51:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_class.hpp:102:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
102 | priority[1] = 1;
| ^~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_seed_connection.cpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/http_seed_connection.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/web_connection_base.hpp:42:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:1188:8: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1188 | if (m_pc.m_channel_state[peer_connection::upload_channel] & peer_info::bw_network)
| ^~~~~~~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:1194:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1194 | m_pc.m_channel_state[peer_connection::upload_channel] |= peer_info::bw_network;
| ^~~~~~~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:1204:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1204 | m_pc.m_channel_state[peer_connection::upload_channel] &= ~peer_info::bw_network;
| ^~~~~~~~~~~~~~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_seed_connection.cpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/http_seed_connection.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/web_connection_base.hpp:43:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent.hpp:48:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_info.hpp:526:13: warning: unsafe buffer access [-Wunsafe-buffer-usage]
526 | return &m_piece_hashes[idx * 20];
| ^~~~~~~~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_seed_connection.cpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/http_seed_connection.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/web_connection_base.hpp:43:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent.hpp:51:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_list.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_peer.hpp:40:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/string_ptr.hpp:46:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
46 | m_ptr[str.size()] = '\0';
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_seed_connection.cpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/http_seed_connection.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/web_connection_base.hpp:43:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent.hpp:51:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_list.hpp:47:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/ip_voter.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_interface.hpp:46:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_udp_sockets.hpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_socket_manager.hpp:39:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/socket_type.hpp:39:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/socks5_stream.hpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/proxy_base.hpp:36:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:176:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
176 | start += str.size();
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_seed_connection.cpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_impl.hpp:50:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session.hpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session_handle.hpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/disk_io_thread.hpp:39:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/storage.hpp:44:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/storage_piece_set.hpp:41:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/block_cache.hpp:381:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
381 | { return m_lru[cached_piece_entry::write_lru].iterate(); }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/block_cache.hpp:383:45: warning: unsafe buffer access [-Wunsafe-buffer-usage]
383 | int num_write_lru_pieces() const { return m_lru[cached_piece_entry::write_lru].size(); }
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_seed_connection.cpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_impl.hpp:50:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session.hpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session_handle.hpp:50:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/kademlia/dht_storage.hpp:39:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/kademlia/types.hpp:46:18: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
46 | { std::copy(b, b + len, bytes.begin()); }
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/kademlia/types.hpp:57:18: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
57 | { std::copy(b, b + len, bytes.begin()); }
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/kademlia/types.hpp:68:18: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
68 | { std::copy(b, b + len, bytes.begin()); }
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_seed_connection.cpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_impl.hpp:68:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_manager.hpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:75:26: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
75 | char* ptr = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:77:59: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
77 | std::size_t const pad_bytes = aux::calculate_pad_bytes(ptr + sizeof(header_t), alignof(U));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:99:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
99 | ptr += sizeof(header_t) + pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:101:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
101 | + aux::calculate_pad_bytes(ptr + sizeof(U), alignof(header_t)));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:214:38: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
214 | char const* const end = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:219:5: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
219 | src += sizeof(header_t) + src_hdr->pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:220:5: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
220 | dst += sizeof(header_t) + src_hdr->pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:226:5: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
226 | src += len ;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:227:5: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
227 | dst += len;
| ^~~
88 warnings generated.
[ 38% 77/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/lsd.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/lsd.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/lsd.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lsd.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lsd.cpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/socket_io.hpp:41:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bencode.hpp:142:4: warning: 'switch' missing 'default' label [-Wswitch-default]
142 | switch(e.type())
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lsd.cpp:46:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/enum_net.hpp:54:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lsd.cpp:69:49: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
68 | "cookie: %x\r\n"
| ~~
| %x
69 | "\r\n\r\n", host, listen_port, info_hash_hex, cookie);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lsd.cpp:171:6: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
170 | debug_log("==> LSD: ih: %s port: %u [iface: %s]", aux::to_hex(ih).c_str()
| ~~
| %d
171 | , listen_port, m_listen_address.to_string().c_str());
| ^~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lsd.cpp:291:7: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
290 | debug_log("<== LSD: ignoring packet (cookie matched our own): %x"
| ~~
| %x
291 | , m_cookie);
| ^~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/lsd.cpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/socket_io.hpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:176:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
176 | start += str.size();
| ^~~~~
6 warnings generated.
[ 38% 77/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/magnet_uri.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/magnet_uri.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/magnet_uri.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/magnet_uri.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/magnet_uri.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/magnet_uri.hpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_handle.hpp:58:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_flags.hpp:39:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/magnet_uri.cpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/socket_io.hpp:41:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bencode.hpp:142:4: warning: 'switch' missing 'default' label [-Wswitch-default]
142 | switch(e.type())
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/magnet_uri.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/magnet_uri.hpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_handle.hpp:59:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_info.hpp:40:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:86:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
86 | return (buf()[index / 32] & aux::host_to_network(0x80000000 >> (index & 31))) != 0;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:94:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
94 | buf()[index / 32] &= aux::host_to_network(~(0x80000000 >> (index & 31)));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:100:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
100 | buf()[index / 32] |= aux::host_to_network(0x80000000 >> (index & 31));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:115:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
115 | if (b[i] != 0) return false;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:205:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
205 | ++buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:218:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
218 | --buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ~~~~~~^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:269:21: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | if (size() & 31) buf()[num_words() - 1] &= aux::host_to_network(0xffffffff << (32 - (size() & 31)));
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/magnet_uri.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session.hpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session_handle.hpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/disk_io_thread.hpp:39:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/storage.hpp:44:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/storage_piece_set.hpp:41:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/block_cache.hpp:381:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
381 | { return m_lru[cached_piece_entry::write_lru].iterate(); }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/block_cache.hpp:383:45: warning: unsafe buffer access [-Wunsafe-buffer-usage]
383 | int num_write_lru_pieces() const { return m_lru[cached_piece_entry::write_lru].size(); }
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/magnet_uri.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session.hpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session_handle.hpp:43:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_class.hpp:102:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
102 | priority[1] = 1;
| ^~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/magnet_uri.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session.hpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session_handle.hpp:50:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/kademlia/dht_storage.hpp:39:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/kademlia/types.hpp:46:18: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
46 | { std::copy(b, b + len, bytes.begin()); }
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/kademlia/types.hpp:57:18: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
57 | { std::copy(b, b + len, bytes.begin()); }
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/kademlia/types.hpp:68:18: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
68 | { std::copy(b, b + len, bytes.begin()); }
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/magnet_uri.cpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_info.hpp:526:13: warning: unsafe buffer access [-Wunsafe-buffer-usage]
526 | return &m_piece_hashes[idx * 20];
| ^~~~~~~~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/magnet_uri.cpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/socket_io.hpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:176:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
176 | start += str.size();
| ^~~~~
19 warnings generated.
[ 39% 77/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/bt_peer_connection.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/bt_peer_connection.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/bt_peer_connection.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:44:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bt_peer_connection.hpp:46:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert.hpp:66:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:48:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bencode.hpp:142:4: warning: 'switch' missing 'default' label [-Wswitch-default]
142 | switch(e.type())
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:1504:41: warning: format specifies type 'int' but the argument has type 'std::uint32_t' (aka 'unsigned int') [-Wformat]
1504 | , "msg:failed ERROR: %d msg: %s", error
| ~~ ^~~~~
| %u
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:1410:3: warning: 'switch' missing 'default' label [-Wswitch-default]
1410 | switch (msg_type)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:2040:3: warning: use of function '__builtin_alloca' is discouraged; there is no way to check for failure but failure may still occur, resulting in a possibly exploitable security vulnerability [-Walloca]
2040 | TORRENT_ALLOCA(msg, char, packet_size);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:109:46: note: expanded from macro 'TORRENT_ALLOCA'
109 | auto* TORRENT_ALLOCA_tmp = static_cast(TORRENT_ALLOCA_FUN(sizeof(t) * static_cast(TORRENT_ALLOCA_size))); \
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:94:28: note: expanded from macro 'TORRENT_ALLOCA_FUN'
94 | #define TORRENT_ALLOCA_FUN alloca
| ^
/usr/include/stdlib.h:258:20: note: expanded from macro 'alloca'
258 | #define alloca(sz) __builtin_alloca(sz)
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:48:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bencode.hpp:142:4: warning: 'switch' missing 'default' label [-Wswitch-default]
142 | switch(e.type())
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bencode.hpp:374:18: note: in instantiation of function template specialization 'libtorrent::detail::bencode_recursive>>' requested here
374 | return detail::bencode_recursive(out, e);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:2205:3: note: in instantiation of function template specialization 'libtorrent::bencode>>' requested here
2205 | bencode(std::back_inserter(dict_msg), handshake);
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/hex.hpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:131:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
131 | T* end() const noexcept { return m_ptr + m_len; }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:153:13: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
153 | return { data() + offset, size() - offset };
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:168:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
168 | return m_ptr[idx];
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:131:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
131 | T* end() const noexcept { return m_ptr + m_len; }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:136:64: warning: unsafe buffer access [-Wunsafe-buffer-usage]
136 | T& back() const noexcept { TORRENT_ASSERT(m_len > 0); return m_ptr[m_len - 1]; }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:153:13: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
153 | return { data() + offset, size() - offset };
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:161:13: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
161 | return { data() + offset, count };
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:168:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
168 | return m_ptr[idx];
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:44:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bt_peer_connection.hpp:45:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:107:45: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
107 | std::copy(initialize.begin(), initialize.begin()
| ~~~~~~~~~~~^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:142:76: warning: unsafe buffer access [-Wunsafe-buffer-usage]
142 | char& operator[](index_type const i) { TORRENT_ASSERT(i < size()); return m_begin[i]; }
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:143:93: warning: unsafe buffer access [-Wunsafe-buffer-usage]
143 | char const& operator[](difference_type const i) const { TORRENT_ASSERT(i < size()); return m_begin[i]; }
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:147:23: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
147 | char* end() { return m_begin + m_size; }
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:148:35: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
148 | char const* end() const { return m_begin + m_size; }
| ^~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:44:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bt_peer_connection.hpp:46:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_id.hpp:36:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/sha1_hash.hpp:244:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
244 | return reinterpret_cast(m_number.data())[i];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:44:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bt_peer_connection.hpp:46:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:39:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:18: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:118:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
118 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:124:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
124 | m_stat[download_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:125:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
125 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:133:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
133 | m_stat[download_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:134:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
134 | m_stat[download_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:142:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
142 | m_stat[upload_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:143:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
143 | m_stat[upload_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:158:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
158 | m_stat[download_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:159:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
159 | m_stat[upload_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:162:43: warning: unsafe buffer access [-Wunsafe-buffer-usage]
162 | int upload_ip_overhead() const { return m_stat[upload_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:163:45: warning: unsafe buffer access [-Wunsafe-buffer-usage]
163 | int download_ip_overhead() const { return m_stat[download_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:169:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
169 | m_stat[i].second_tick(tick_interval_ms);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:174:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
174 | return m_stat[upload_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:175:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
175 | + m_stat[upload_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:176:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
176 | + m_stat[upload_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:181:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
181 | return m_stat[download_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:182:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
182 | + m_stat[download_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:183:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
183 | + m_stat[download_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:188:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
188 | return m_stat[upload_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:189:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
189 | + m_stat[upload_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:190:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
190 | + m_stat[upload_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:195:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
195 | return m_stat[download_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:196:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
196 | + m_stat[download_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:197:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
197 | + m_stat[download_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:202:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
202 | return m_stat[upload_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:203:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
203 | + m_stat[upload_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:204:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
204 | + m_stat[upload_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:209:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
209 | return m_stat[download_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:210:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
210 | + m_stat[download_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:211:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
211 | + m_stat[download_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:215:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
215 | { return m_stat[upload_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:217:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
217 | { return m_stat[download_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:220:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
220 | { return m_stat[upload_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:222:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
222 | { return m_stat[download_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:225:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
225 | { return m_stat[upload_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:227:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
227 | { return m_stat[download_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:230:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
230 | { return m_stat[channel].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:232:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
232 | { return m_stat[channel].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:239:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
239 | m_stat[download_payload].offset(downloaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:240:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
240 | m_stat[upload_payload].offset(uploaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:244:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
244 | { return m_stat[download_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:246:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
246 | { return m_stat[upload_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:248:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
248 | { return m_stat[download_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:250:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
250 | { return m_stat[upload_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:269:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | m_stat[i].clear();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:275:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
275 | return m_stat[i];
| ^~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:44:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bt_peer_connection.hpp:46:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:47:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:86:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
86 | return (buf()[index / 32] & aux::host_to_network(0x80000000 >> (index & 31))) != 0;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:94:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
94 | buf()[index / 32] &= aux::host_to_network(~(0x80000000 >> (index & 31)));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:100:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
100 | buf()[index / 32] |= aux::host_to_network(0x80000000 >> (index & 31));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:115:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
115 | if (b[i] != 0) return false;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:205:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
205 | ++buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:218:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
218 | --buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ~~~~~~^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:269:21: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | if (size() & 31) buf()[num_words() - 1] &= aux::host_to_network(0xffffffff << (32 - (size() & 31)));
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:44:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bt_peer_connection.hpp:46:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:51:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_class.hpp:102:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
102 | priority[1] = 1;
| ^~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:44:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bt_peer_connection.hpp:46:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:1188:8: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1188 | if (m_pc.m_channel_state[peer_connection::upload_channel] & peer_info::bw_network)
| ^~~~~~~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:1194:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1194 | m_pc.m_channel_state[peer_connection::upload_channel] |= peer_info::bw_network;
| ^~~~~~~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:1204:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1204 | m_pc.m_channel_state[peer_connection::upload_channel] &= ~peer_info::bw_network;
| ^~~~~~~~~~~~~~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:44:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bt_peer_connection.hpp:51:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent.hpp:48:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_info.hpp:526:13: warning: unsafe buffer access [-Wunsafe-buffer-usage]
526 | return &m_piece_hashes[idx * 20];
| ^~~~~~~~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:44:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bt_peer_connection.hpp:51:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent.hpp:51:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_list.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_peer.hpp:40:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/string_ptr.hpp:46:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
46 | m_ptr[str.size()] = '\0';
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:44:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bt_peer_connection.hpp:51:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent.hpp:51:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_list.hpp:47:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/ip_voter.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_interface.hpp:46:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_udp_sockets.hpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_socket_manager.hpp:39:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/socket_type.hpp:39:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/socks5_stream.hpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/proxy_base.hpp:36:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:61:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
61 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:61:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
61 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:61:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
61 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:69:38: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
69 | return static_cast(*start++);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:97:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
97 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:97:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
97 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:97:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
97 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:97:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
97 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:97:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
97 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:97:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
97 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:97:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
97 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:97:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
97 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:97:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
97 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:97:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
97 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:176:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
176 | start += str.size();
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:44:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bt_peer_connection.hpp:281:16: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
281 | char* ptr = msg + 5;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bt_peer_connection.hpp:281:16: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
281 | char* ptr = msg + 5;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bt_peer_connection.hpp:281:16: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
281 | char* ptr = msg + 5;
| ^~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:45:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session.hpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session_handle.hpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/disk_io_thread.hpp:39:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/storage.hpp:44:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/storage_piece_set.hpp:41:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/block_cache.hpp:381:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
381 | { return m_lru[cached_piece_entry::write_lru].iterate(); }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/block_cache.hpp:383:45: warning: unsafe buffer access [-Wunsafe-buffer-usage]
383 | int num_write_lru_pieces() const { return m_lru[cached_piece_entry::write_lru].size(); }
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:45:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session.hpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/session_handle.hpp:50:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/kademlia/dht_storage.hpp:39:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/kademlia/types.hpp:46:18: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
46 | { std::copy(b, b + len, bytes.begin()); }
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/kademlia/types.hpp:57:18: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
57 | { std::copy(b, b + len, bytes.begin()); }
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/kademlia/types.hpp:68:18: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
68 | { std::copy(b, b + len, bytes.begin()); }
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:60:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:50:29: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
50 | for (; current != last; ++current) {
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:54:30: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
54 | for (; first != current; ++first) {
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:63:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_manager.hpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:75:26: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
75 | char* ptr = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:77:59: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
77 | std::size_t const pad_bytes = aux::calculate_pad_bytes(ptr + sizeof(header_t), alignof(U));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:99:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
99 | ptr += sizeof(header_t) + pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:101:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
101 | + aux::calculate_pad_bytes(ptr + sizeof(U), alignof(header_t)));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:214:38: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
214 | char const* const end = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:219:5: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
219 | src += sizeof(header_t) + src_hdr->pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:220:5: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
220 | dst += sizeof(header_t) + src_hdr->pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:226:5: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
226 | src += len ;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:227:5: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
227 | dst += len;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:221:40: warning: unsafe buffer access [-Wunsafe-buffer-usage]
221 | , "outgoing encryption policy: %s", policy_name[out_policy]);
| ^~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:343:15: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
343 | char* ptr = msg + 5;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:509:3: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
509 | ptr += dh_key_len;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:550:3: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
550 | ptr += 20;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:573:3: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
573 | ptr += 20;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:594:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
594 | , "%s", level[crypto_provide - 1]);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:694:3: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
694 | ptr += string_len;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:700:5: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
700 | *(ptr + 7) |= 0x01;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:704:5: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
704 | *(ptr + 5) |= 0x10;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:709:6: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
709 | *(ptr + 5) |= 0x08;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:713:5: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
713 | *(ptr + 7) |= 0x04;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:723:10: warning: unsafe buffer access [-Wunsafe-buffer-usage]
723 | if (ptr[k] & (0x80 >> j)) bitmask += '1';
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:731:3: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
731 | ptr += 8;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:736:3: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
736 | ptr += 20;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:768:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
768 | const char* ptr = recv_buffer.data() + 1;
| ~~~~~~~~~~~~^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:929:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
929 | const char* ptr = recv_buffer.data() + 1;
| ~~~~~~~~~~~~^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:963:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
963 | bits.assign(recv_buffer.data() + 1
| ~~~~~~~~~~~~^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:989:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
989 | const char* ptr = recv_buffer.data() + 1;
| ~~~~~~~~~~~~^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:1025:34: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
1025 | char const* ptr = recv_buffer.data() + 9;
| ~~~~~~~~~~~~^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:1065:34: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
1065 | const char* ptr = recv_buffer.data() + 1;
| ~~~~~~~~~~~~^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:1177:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
1177 | incoming_piece(p, recv_buffer.data() + header_size);
| ~~~~~~~~~~~~^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:1200:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
1200 | const char* ptr = recv_buffer.data() + 1;
| ~~~~~~~~~~~~^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:1227:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
1227 | const char* ptr = recv_buffer.data() + 1;
| ~~~~~~~~~~~~^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:1257:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
1257 | const char* ptr = recv_buffer.data() + 1;
| ~~~~~~~~~~~~^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:1304:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
1304 | const char* ptr = recv_buffer.data() + 1;
| ~~~~~~~~~~~~^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:1325:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
1325 | const char* ptr = recv_buffer.data() + 1;
| ~~~~~~~~~~~~^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:1353:39: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
1353 | char const* const end = recv_buffer.data() + recv_buffer.size();
| ~~~~~~~~~~~~^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:1384:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1384 | ? hp_msg_name[static_cast(msg_type)]
| ^~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:1505:35: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1505 | , ((error > 0 && error < 5)?err_msg[error-1]:"unknown message id"));
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:1518:15: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
1518 | char* ptr = buf + 6;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:1532:8: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1532 | ? hp_msg_name[static_cast(type)]
| ^~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:1535:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1535 | , hp_error_string[static_cast(error)]);
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:1918:15: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
1918 | char* ptr = msg + 5;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:1935:15: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
1935 | char* ptr = msg + 5;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:2066:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
2066 | ++ptr;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:2295:15: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
2295 | char* ptr = msg + 6;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:2696:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
2696 | if (!std::equal(sh_vc, sh_vc + 8, recv_buffer.begin() + 20))
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:2696:50: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
2696 | if (!std::equal(sh_vc, sh_vc + 8, recv_buffer.begin() + 20))
| ~~~~~~~~~~~~^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:2737:42: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
2737 | std::fill(m_sync_vc.get(), m_sync_vc.get() + 8, char{0});
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:3119:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
3119 | std::copy(recv_buffer.begin() + 8, recv_buffer.begin() + 28
| ~~~~~~~~~~~~^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:3119:52: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
3119 | std::copy(recv_buffer.begin() + 8, recv_buffer.begin() + 28
| ~~~~~~~~~~~~^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:3128:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
3128 | if (!std::equal(recv_buffer.begin() + 8, recv_buffer.begin() + 28
| ~~~~~~~~~~~~^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:3128:58: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
3128 | if (!std::equal(recv_buffer.begin() + 8, recv_buffer.begin() + 28
| ~~~~~~~~~~~~^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:3183:6: warning: unsafe buffer access [-Wunsafe-buffer-usage]
3183 | ascii_pid[i] = (is_print(recv_buffer[i])) ? recv_buffer[i] : '.';
| ^~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/bt_peer_connection.cpp:3190:47: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
3190 | std::copy(recv_buffer.begin(), recv_buffer.begin() + 20, pid.data());
| ~~~~~~~~~~~~^~~~~~~
162 warnings generated.
[ 39% 77/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/natpmp.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/natpmp.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/natpmp.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/natpmp.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/natpmp.cpp:50:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/natpmp.hpp:43:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/portmap.hpp:90:3: warning: 'switch' missing 'default' label [-Wswitch-default]
90 | switch (act)
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/natpmp.cpp:50:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/natpmp.hpp:45:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/enum_net.hpp:54:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/natpmp.cpp:54:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/socket_io.hpp:41:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bencode.hpp:142:4: warning: 'switch' missing 'default' label [-Wswitch-default]
142 | switch(e.type())
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/natpmp.cpp:118:3: warning: 'switch' missing 'default' label [-Wswitch-default]
118 | switch (result)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/natpmp.cpp:535:6: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
531 | " transport: %s proto: %s local: %u external: %u ttl: %u ]"
| ~~
| %d
532 | , static_cast(i), to_string(m.act)
533 | , version_to_string(m_version)
534 | , to_string(m.protocol)
535 | , m.local_port, m.external_port, ttl);
| ^~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/natpmp.cpp:535:20: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
531 | " transport: %s proto: %s local: %u external: %u ttl: %u ]"
| ~~
| %d
532 | , static_cast(i), to_string(m.act)
533 | , version_to_string(m_version)
534 | , to_string(m.protocol)
535 | , m.local_port, m.external_port, ttl);
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/natpmp.cpp:535:37: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
531 | " transport: %s proto: %s local: %u external: %u ttl: %u ]"
| ~~
| %d
532 | , static_cast(i), to_string(m.act)
533 | , version_to_string(m_version)
534 | , to_string(m.protocol)
535 | , m.local_port, m.external_port, ttl);
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/natpmp.cpp:659:33: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
659 | log("unexpected version: %u", version);
| ~~ ^~~~~~~
| %d
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/natpmp.cpp:856:30: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
856 | log("mapping %u expired", static_cast(index));
| ~~ ^~~~~~~~~~~~~~~~~~~~~~~
| %d
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/natpmp.cpp:894:28: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
894 | log("mapping %u expired", static_cast(i));
| ~~ ^~~~~~~~~~~~~~~~~~~
| %d
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/natpmp.cpp:51:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:61:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
61 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:61:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
61 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:69:38: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
69 | return static_cast(*start++);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:97:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
97 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:97:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
97 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:97:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
97 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:97:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
97 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:97:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
97 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:97:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
97 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:97:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
97 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:97:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
97 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:176:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
176 | start += str.size();
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/natpmp.cpp:90:10: warning: unsafe buffer access [-Wunsafe-buffer-usage]
90 | return msgs[ev];
| ^~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/natpmp.cpp:672:5: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
672 | ++in; // reserved
| ^~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/natpmp.cpp:710:30: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
710 | if (version == version_pcp) in += 12; // reserved
| ^~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/natpmp.cpp:742:3: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
742 | in += nonce.size();
| ^~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/natpmp.cpp:746:3: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
746 | in += 3; // reserved
| ^~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/natpmp.cpp:793:12: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
793 | snprintf(msg + num_chars, sizeof(msg) - aux::numeric_cast(num_chars), " not found in map table");
| ^~~
28 warnings generated.
[ 40% 77/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/proxy_base.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/proxy_base.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/proxy_base.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/proxy_base.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/proxy_base.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/proxy_base.hpp:36:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:176:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
176 | start += str.size();
| ^~~~~
1 warning generated.
[ 40% 77/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/random.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/random.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/random.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/random.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/random.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/random.hpp:37:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:131:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
131 | T* end() const noexcept { return m_ptr + m_len; }
| ^~~~~
1 warning generated.
[ 41% 77/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/piece_picker.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/piece_picker.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/piece_picker.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/piece_picker.hpp:55:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_types.hpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert.hpp:66:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp:112:50: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
112 | constexpr prio_index_t piece_picker::piece_pos::we_have_index;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp:114:43: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
114 | constexpr picker_options_t piece_picker::rarest_first;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp:115:43: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
115 | constexpr picker_options_t piece_picker::reverse;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp:116:43: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
116 | constexpr picker_options_t piece_picker::on_parole;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp:117:43: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
117 | constexpr picker_options_t piece_picker::prioritize_partials;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp:118:43: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
118 | constexpr picker_options_t piece_picker::sequential;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp:119:43: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
119 | constexpr picker_options_t piece_picker::time_critical_mode;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp:120:43: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
120 | constexpr picker_options_t piece_picker::align_expanded_pieces;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp:121:43: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
121 | constexpr picker_options_t piece_picker::piece_extent_affinity;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp:123:54: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
123 | constexpr download_queue_t piece_picker::piece_pos::piece_downloading;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp:124:54: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
124 | constexpr download_queue_t piece_picker::piece_pos::piece_full;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp:125:54: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
125 | constexpr download_queue_t piece_picker::piece_pos::piece_finished;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp:126:54: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
126 | constexpr download_queue_t piece_picker::piece_pos::piece_zero_prio;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp:127:54: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
127 | constexpr download_queue_t piece_picker::piece_pos::num_download_categories;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp:128:54: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
128 | constexpr download_queue_t piece_picker::piece_pos::piece_open;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp:129:54: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
129 | constexpr download_queue_t piece_picker::piece_pos::piece_downloading_reverse;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp:130:54: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
130 | constexpr download_queue_t piece_picker::piece_pos::piece_full_reverse;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp:1274:3: warning: use of function '__builtin_alloca' is discouraged; there is no way to check for failure but failure may still occur, resulting in a possibly exploitable security vulnerability [-Walloca]
1274 | TORRENT_ALLOCA(incremented, piece_index_t, size);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:109:46: note: expanded from macro 'TORRENT_ALLOCA'
109 | auto* TORRENT_ALLOCA_tmp = static_cast(TORRENT_ALLOCA_FUN(sizeof(t) * static_cast(TORRENT_ALLOCA_size))); \
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:94:28: note: expanded from macro 'TORRENT_ALLOCA_FUN'
94 | #define TORRENT_ALLOCA_FUN alloca
| ^
/usr/include/stdlib.h:258:20: note: expanded from macro 'alloca'
258 | #define alloca(sz) __builtin_alloca(sz)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp:1370:3: warning: use of function '__builtin_alloca' is discouraged; there is no way to check for failure but failure may still occur, resulting in a possibly exploitable security vulnerability [-Walloca]
1370 | TORRENT_ALLOCA(decremented, piece_index_t, size);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:109:46: note: expanded from macro 'TORRENT_ALLOCA'
109 | auto* TORRENT_ALLOCA_tmp = static_cast(TORRENT_ALLOCA_FUN(sizeof(t) * static_cast(TORRENT_ALLOCA_size))); \
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:94:28: note: expanded from macro 'TORRENT_ALLOCA_FUN'
94 | #define TORRENT_ALLOCA_FUN alloca
| ^
/usr/include/stdlib.h:258:20: note: expanded from macro 'alloca'
258 | #define alloca(sz) __builtin_alloca(sz)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp:1993:4: warning: use of function '__builtin_alloca' is discouraged; there is no way to check for failure but failure may still occur, resulting in a possibly exploitable security vulnerability [-Walloca]
1993 | TORRENT_ALLOCA(ordered_partials, downloading_piece const*
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:109:46: note: expanded from macro 'TORRENT_ALLOCA'
109 | auto* TORRENT_ALLOCA_tmp = static_cast(TORRENT_ALLOCA_FUN(sizeof(t) * static_cast(TORRENT_ALLOCA_size))); \
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:94:28: note: expanded from macro 'TORRENT_ALLOCA_FUN'
94 | #define TORRENT_ALLOCA_FUN alloca
| ^
/usr/include/stdlib.h:258:20: note: expanded from macro 'alloca'
258 | #define alloca(sz) __builtin_alloca(sz)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp:2364:3: warning: use of function '__builtin_alloca' is discouraged; there is no way to check for failure but failure may still occur, resulting in a possibly exploitable security vulnerability [-Walloca]
2364 | TORRENT_ALLOCA(partials, downloading_piece const*, partials_size);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:109:46: note: expanded from macro 'TORRENT_ALLOCA'
109 | auto* TORRENT_ALLOCA_tmp = static_cast(TORRENT_ALLOCA_FUN(sizeof(t) * static_cast(TORRENT_ALLOCA_size))); \
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:94:28: note: expanded from macro 'TORRENT_ALLOCA_FUN'
94 | #define TORRENT_ALLOCA_FUN alloca
| ^
/usr/include/stdlib.h:258:20: note: expanded from macro 'alloca'
258 | #define alloca(sz) __builtin_alloca(sz)
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/piece_picker.hpp:48:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_id.hpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/sha1_hash.hpp:49:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/ffs.hpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:131:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
131 | T* end() const noexcept { return m_ptr + m_len; }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:168:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
168 | return m_ptr[idx];
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:131:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
131 | T* end() const noexcept { return m_ptr + m_len; }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:168:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
168 | return m_ptr[idx];
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:131:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
131 | T* end() const noexcept { return m_ptr + m_len; }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:168:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
168 | return m_ptr[idx];
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:131:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
131 | T* end() const noexcept { return m_ptr + m_len; }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:168:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
168 | return m_ptr[idx];
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/piece_picker.hpp:55:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_types.hpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_handle.hpp:59:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_info.hpp:40:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:86:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
86 | return (buf()[index / 32] & aux::host_to_network(0x80000000 >> (index & 31))) != 0;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:94:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
94 | buf()[index / 32] &= aux::host_to_network(~(0x80000000 >> (index & 31)));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:100:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
100 | buf()[index / 32] |= aux::host_to_network(0x80000000 >> (index & 31));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:115:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
115 | if (b[i] != 0) return false;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:205:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
205 | ++buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:218:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
218 | --buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ~~~~~~^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:269:21: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | if (size() & 31) buf()[num_words() - 1] &= aux::host_to_network(0xffffffff << (32 - (size() & 31)));
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/piece_picker.hpp:55:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_types.hpp:43:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:18: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:118:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
118 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:124:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
124 | m_stat[download_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:125:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
125 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:133:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
133 | m_stat[download_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:134:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
134 | m_stat[download_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:142:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
142 | m_stat[upload_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:143:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
143 | m_stat[upload_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:158:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
158 | m_stat[download_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:159:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
159 | m_stat[upload_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:162:43: warning: unsafe buffer access [-Wunsafe-buffer-usage]
162 | int upload_ip_overhead() const { return m_stat[upload_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:163:45: warning: unsafe buffer access [-Wunsafe-buffer-usage]
163 | int download_ip_overhead() const { return m_stat[download_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:169:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
169 | m_stat[i].second_tick(tick_interval_ms);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:174:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
174 | return m_stat[upload_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:175:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
175 | + m_stat[upload_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:176:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
176 | + m_stat[upload_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:181:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
181 | return m_stat[download_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:182:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
182 | + m_stat[download_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:183:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
183 | + m_stat[download_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:188:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
188 | return m_stat[upload_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:189:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
189 | + m_stat[upload_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:190:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
190 | + m_stat[upload_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:195:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
195 | return m_stat[download_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:196:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
196 | + m_stat[download_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:197:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
197 | + m_stat[download_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:202:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
202 | return m_stat[upload_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:203:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
203 | + m_stat[upload_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:204:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
204 | + m_stat[upload_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:209:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
209 | return m_stat[download_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:210:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
210 | + m_stat[download_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:211:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
211 | + m_stat[download_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:215:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
215 | { return m_stat[upload_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:217:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
217 | { return m_stat[download_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:220:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
220 | { return m_stat[upload_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:222:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
222 | { return m_stat[download_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:225:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
225 | { return m_stat[upload_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:227:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
227 | { return m_stat[download_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:230:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
230 | { return m_stat[channel].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:232:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
232 | { return m_stat[channel].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:239:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
239 | m_stat[download_payload].offset(downloaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:240:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
240 | m_stat[upload_payload].offset(uploaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:244:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
244 | { return m_stat[download_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:246:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
246 | { return m_stat[upload_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:248:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
248 | { return m_stat[download_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:250:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
250 | { return m_stat[upload_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:269:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | m_stat[i].clear();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:275:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
275 | return m_stat[i];
| ^~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp:43:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/random.hpp:51:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
51 | std::shuffle(range.data(), range.data() + range.size(), random_engine());
| ~~~~~~^~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp:44:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:50:29: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
50 | for (; current != last; ++current) {
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:54:30: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
54 | for (; first != current; ++first) {
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:50:29: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
50 | for (; current != last; ++current) {
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:54:30: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
54 | for (; first != current; ++first) {
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/piece_picker.cpp:2027:58: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
2027 | std::sort(ordered_partials.begin(), ordered_partials.begin() + num_ordered_partials
| ~~~~~~~~~~~~~~~~~^~~~~~~
93 warnings generated.
[ 42% 77/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/peer_list.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/peer_list.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/peer_list.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_list.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_list.cpp:35:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert.hpp:66:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_list.cpp:58:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/socket_io.hpp:41:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bencode.hpp:142:4: warning: 'switch' missing 'default' label [-Wswitch-default]
142 | switch(e.type())
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_list.cpp:144:42: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
144 | constexpr erase_peer_flags_t peer_list::force_erase;
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_list.cpp:35:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:37:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:107:45: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
107 | std::copy(initialize.begin(), initialize.begin()
| ~~~~~~~~~~~^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:142:76: warning: unsafe buffer access [-Wunsafe-buffer-usage]
142 | char& operator[](index_type const i) { TORRENT_ASSERT(i < size()); return m_begin[i]; }
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:143:93: warning: unsafe buffer access [-Wunsafe-buffer-usage]
143 | char const& operator[](difference_type const i) const { TORRENT_ASSERT(i < size()); return m_begin[i]; }
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:147:23: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
147 | char* end() { return m_begin + m_size; }
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:148:35: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
148 | char const* end() const { return m_begin + m_size; }
| ^~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_list.cpp:35:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:39:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:18: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:118:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
118 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:124:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
124 | m_stat[download_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:125:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
125 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:133:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
133 | m_stat[download_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:134:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
134 | m_stat[download_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:142:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
142 | m_stat[upload_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:143:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
143 | m_stat[upload_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:158:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
158 | m_stat[download_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:159:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
159 | m_stat[upload_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:162:43: warning: unsafe buffer access [-Wunsafe-buffer-usage]
162 | int upload_ip_overhead() const { return m_stat[upload_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:163:45: warning: unsafe buffer access [-Wunsafe-buffer-usage]
163 | int download_ip_overhead() const { return m_stat[download_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:169:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
169 | m_stat[i].second_tick(tick_interval_ms);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:174:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
174 | return m_stat[upload_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:175:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
175 | + m_stat[upload_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:176:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
176 | + m_stat[upload_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:181:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
181 | return m_stat[download_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:182:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
182 | + m_stat[download_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:183:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
183 | + m_stat[download_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:188:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
188 | return m_stat[upload_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:189:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
189 | + m_stat[upload_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:190:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
190 | + m_stat[upload_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:195:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
195 | return m_stat[download_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:196:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
196 | + m_stat[download_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:197:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
197 | + m_stat[download_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:202:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
202 | return m_stat[upload_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:203:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
203 | + m_stat[upload_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:204:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
204 | + m_stat[upload_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:209:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
209 | return m_stat[download_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:210:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
210 | + m_stat[download_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:211:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
211 | + m_stat[download_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:215:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
215 | { return m_stat[upload_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:217:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
217 | { return m_stat[download_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:220:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
220 | { return m_stat[upload_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:222:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
222 | { return m_stat[download_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:225:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
225 | { return m_stat[upload_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:227:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
227 | { return m_stat[download_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:230:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
230 | { return m_stat[channel].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:232:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
232 | { return m_stat[channel].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:239:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
239 | m_stat[download_payload].offset(downloaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:240:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
240 | m_stat[upload_payload].offset(uploaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:244:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
244 | { return m_stat[download_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:246:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
246 | { return m_stat[upload_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:248:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
248 | { return m_stat[download_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:250:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
250 | { return m_stat[upload_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:269:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | m_stat[i].clear();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:275:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
275 | return m_stat[i];
| ^~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_list.cpp:35:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:47:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:86:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
86 | return (buf()[index / 32] & aux::host_to_network(0x80000000 >> (index & 31))) != 0;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:94:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
94 | buf()[index / 32] &= aux::host_to_network(~(0x80000000 >> (index & 31)));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:100:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
100 | buf()[index / 32] |= aux::host_to_network(0x80000000 >> (index & 31));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:115:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
115 | if (b[i] != 0) return false;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:205:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
205 | ++buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:218:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
218 | --buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ~~~~~~^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:269:21: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | if (size() & 31) buf()[num_words() - 1] &= aux::host_to_network(0xffffffff << (32 - (size() & 31)));
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_list.cpp:35:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:51:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_class.hpp:102:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
102 | priority[1] = 1;
| ^~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_list.cpp:35:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:1188:8: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1188 | if (m_pc.m_channel_state[peer_connection::upload_channel] & peer_info::bw_network)
| ^~~~~~~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:1194:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1194 | m_pc.m_channel_state[peer_connection::upload_channel] |= peer_info::bw_network;
| ^~~~~~~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:1204:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1204 | m_pc.m_channel_state[peer_connection::upload_channel] &= ~peer_info::bw_network;
| ^~~~~~~~~~~~~~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_list.cpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/web_peer_connection.hpp:44:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/web_connection_base.hpp:43:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent.hpp:48:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_info.hpp:526:13: warning: unsafe buffer access [-Wunsafe-buffer-usage]
526 | return &m_piece_hashes[idx * 20];
| ^~~~~~~~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_list.cpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/web_peer_connection.hpp:44:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/web_connection_base.hpp:43:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent.hpp:51:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_list.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_peer.hpp:40:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/string_ptr.hpp:46:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
46 | m_ptr[str.size()] = '\0';
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_list.cpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/web_peer_connection.hpp:44:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/web_connection_base.hpp:43:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent.hpp:51:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_list.hpp:47:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/ip_voter.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_interface.hpp:46:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_udp_sockets.hpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_socket_manager.hpp:39:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/socket_type.hpp:39:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/socks5_stream.hpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/proxy_base.hpp:36:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:176:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
176 | start += str.size();
| ^~~~~
72 warnings generated.
[ 42% 77/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/peer_connection_handle.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/peer_connection_handle.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/peer_connection_handle.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection_handle.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection_handle.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection_handle.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_types.hpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert.hpp:66:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection_handle.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection_handle.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_types.hpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_handle.hpp:59:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_info.hpp:40:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:86:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
86 | return (buf()[index / 32] & aux::host_to_network(0x80000000 >> (index & 31))) != 0;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:94:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
94 | buf()[index / 32] &= aux::host_to_network(~(0x80000000 >> (index & 31)));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:100:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
100 | buf()[index / 32] |= aux::host_to_network(0x80000000 >> (index & 31));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:115:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
115 | if (b[i] != 0) return false;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:205:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
205 | ++buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:218:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
218 | --buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ~~~~~~^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:269:21: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | if (size() & 31) buf()[num_words() - 1] &= aux::host_to_network(0xffffffff << (32 - (size() & 31)));
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection_handle.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection_handle.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_types.hpp:43:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:18: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:118:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
118 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:124:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
124 | m_stat[download_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:125:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
125 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:133:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
133 | m_stat[download_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:134:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
134 | m_stat[download_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:142:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
142 | m_stat[upload_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:143:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
143 | m_stat[upload_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:158:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
158 | m_stat[download_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:159:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
159 | m_stat[upload_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:162:43: warning: unsafe buffer access [-Wunsafe-buffer-usage]
162 | int upload_ip_overhead() const { return m_stat[upload_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:163:45: warning: unsafe buffer access [-Wunsafe-buffer-usage]
163 | int download_ip_overhead() const { return m_stat[download_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:169:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
169 | m_stat[i].second_tick(tick_interval_ms);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:174:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
174 | return m_stat[upload_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:175:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
175 | + m_stat[upload_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:176:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
176 | + m_stat[upload_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:181:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
181 | return m_stat[download_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:182:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
182 | + m_stat[download_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:183:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
183 | + m_stat[download_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:188:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
188 | return m_stat[upload_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:189:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
189 | + m_stat[upload_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:190:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
190 | + m_stat[upload_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:195:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
195 | return m_stat[download_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:196:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
196 | + m_stat[download_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:197:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
197 | + m_stat[download_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:202:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
202 | return m_stat[upload_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:203:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
203 | + m_stat[upload_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:204:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
204 | + m_stat[upload_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:209:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
209 | return m_stat[download_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:210:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
210 | + m_stat[download_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:211:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
211 | + m_stat[download_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:215:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
215 | { return m_stat[upload_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:217:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
217 | { return m_stat[download_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:220:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
220 | { return m_stat[upload_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:222:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
222 | { return m_stat[download_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:225:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
225 | { return m_stat[upload_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:227:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
227 | { return m_stat[download_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:230:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
230 | { return m_stat[channel].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:232:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
232 | { return m_stat[channel].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:239:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
239 | m_stat[download_payload].offset(downloaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:240:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
240 | m_stat[upload_payload].offset(uploaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:244:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
244 | { return m_stat[download_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:246:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
246 | { return m_stat[upload_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:248:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
248 | { return m_stat[download_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:250:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
250 | { return m_stat[upload_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:269:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | m_stat[i].clear();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:275:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
275 | return m_stat[i];
| ^~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection_handle.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection_handle.hpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:37:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:107:45: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
107 | std::copy(initialize.begin(), initialize.begin()
| ~~~~~~~~~~~^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:142:76: warning: unsafe buffer access [-Wunsafe-buffer-usage]
142 | char& operator[](index_type const i) { TORRENT_ASSERT(i < size()); return m_begin[i]; }
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:143:93: warning: unsafe buffer access [-Wunsafe-buffer-usage]
143 | char const& operator[](difference_type const i) const { TORRENT_ASSERT(i < size()); return m_begin[i]; }
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:147:23: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
147 | char* end() { return m_begin + m_size; }
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:148:35: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
148 | char const* end() const { return m_begin + m_size; }
| ^~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection_handle.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection_handle.hpp:41:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:51:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_class.hpp:102:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
102 | priority[1] = 1;
| ^~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection_handle.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection_handle.hpp:41:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:1188:8: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1188 | if (m_pc.m_channel_state[peer_connection::upload_channel] & peer_info::bw_network)
| ^~~~~~~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:1194:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1194 | m_pc.m_channel_state[peer_connection::upload_channel] |= peer_info::bw_network;
| ^~~~~~~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:1204:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1204 | m_pc.m_channel_state[peer_connection::upload_channel] &= ~peer_info::bw_network;
| ^~~~~~~~~~~~~~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection_handle.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bt_peer_connection.hpp:51:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent.hpp:48:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_info.hpp:526:13: warning: unsafe buffer access [-Wunsafe-buffer-usage]
526 | return &m_piece_hashes[idx * 20];
| ^~~~~~~~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection_handle.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bt_peer_connection.hpp:51:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent.hpp:51:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_list.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_peer.hpp:40:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/string_ptr.hpp:46:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
46 | m_ptr[str.size()] = '\0';
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection_handle.cpp:34:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bt_peer_connection.hpp:51:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent.hpp:51:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_list.hpp:47:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/ip_voter.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_interface.hpp:46:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_udp_sockets.hpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_socket_manager.hpp:39:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/socket_type.hpp:39:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/socks5_stream.hpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/proxy_base.hpp:36:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:176:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
176 | start += str.size();
| ^~~~~
70 warnings generated.
[ 43% 77/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/http_connection.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/http_connection.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/http_connection.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_connection.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_connection.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/http_connection.hpp:56:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/i2p_stream.hpp:48:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/proxy_settings.hpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/settings_pack.hpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_connection.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/http_connection.hpp:53:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/http_parser.hpp:44:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:153:13: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
153 | return { data() + offset, size() - offset };
| ^~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_connection.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/http_connection.hpp:56:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/i2p_stream.hpp:45:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/proxy_base.hpp:36:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:176:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
176 | start += str.size();
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_connection.cpp:33:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/http_connection.hpp:57:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/socket_type.hpp:42:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_stream.hpp:330:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
330 | , end(buffer_sequence_end(buffers)); i != end; ++i)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_stream.hpp:330:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
330 | , end(buffer_sequence_end(buffers)); i != end; ++i)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_stream.hpp:330:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
330 | , end(buffer_sequence_end(buffers)); i != end; ++i)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_stream.hpp:330:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
330 | , end(buffer_sequence_end(buffers)); i != end; ++i)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_stream.hpp:330:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
330 | , end(buffer_sequence_end(buffers)); i != end; ++i)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_stream.hpp:330:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
330 | , end(buffer_sequence_end(buffers)); i != end; ++i)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_stream.hpp:330:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
330 | , end(buffer_sequence_end(buffers)); i != end; ++i)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_stream.hpp:481:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
481 | , end(buffer_sequence_end(buffers)); i != end; ++i)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_stream.hpp:481:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
481 | , end(buffer_sequence_end(buffers)); i != end; ++i)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_stream.hpp:481:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
481 | , end(buffer_sequence_end(buffers)); i != end; ++i)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_stream.hpp:481:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
481 | , end(buffer_sequence_end(buffers)); i != end; ++i)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_stream.hpp:481:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
481 | , end(buffer_sequence_end(buffers)); i != end; ++i)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_stream.hpp:481:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
481 | , end(buffer_sequence_end(buffers)); i != end; ++i)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_stream.hpp:481:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
481 | , end(buffer_sequence_end(buffers)); i != end; ++i)
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_connection.cpp:44:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/random.hpp:51:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
51 | std::shuffle(range.data(), range.data() + range.size(), random_engine());
| ~~~~~~^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_connection.cpp:694:58: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
694 | m_sock.async_read_some(boost::asio::buffer(m_recvbuffer.data() + m_read_pos
| ~~~~~~~~~~~~~^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_connection.cpp:728:35: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
728 | body = span(m_recvbuffer.data() + m_parser.body_start()
| ~~~~~~~~~~~~~^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_connection.cpp:848:58: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
848 | m_sock.async_read_some(boost::asio::buffer(m_recvbuffer.data() + m_read_pos
| ~~~~~~~~~~~~~^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/http_connection.cpp:880:58: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
880 | m_sock.async_read_some(boost::asio::buffer(m_recvbuffer.data() + m_read_pos
| ~~~~~~~~~~~~~^~~~~~
22 warnings generated.
[ 43% 77/176] /usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_EXCEPTION_DISABLE -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_USE_ICONV -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++17 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Weverything -Wno-c++98-compat-pedantic -Wno-documentation -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-weak-vtables -fexceptions -pthread -MD -MT CMakeFiles/torrent-rasterbar.dir/src/peer_connection.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/peer_connection.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/peer_connection.cpp.o -c /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert.hpp:66:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/flags.hpp:49:29: warning: identifier '_bit' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
49 | constexpr bit_t operator "" _bit(unsigned long long int b) { return bit_t{static_cast(b)}; }
| ~~~~~~~~~~~~^~~~
| operator""_bit
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:40:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bencode.hpp:142:4: warning: 'switch' missing 'default' label [-Wswitch-default]
142 | switch(e.type())
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:95:45: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
95 | constexpr request_flags_t peer_connection::time_critical;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:96:45: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
96 | constexpr request_flags_t peer_connection::busy;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:110:48: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
110 | constexpr piece_index_t piece_block_progress::invalid_index;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:112:61: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
112 | constexpr disconnect_severity_t peer_connection_interface::normal;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:113:61: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
113 | constexpr disconnect_severity_t peer_connection_interface::failure;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:114:61: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated-redundant-constexpr-static-def]
114 | constexpr disconnect_severity_t peer_connection_interface::peer_error;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:1529:33: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
1528 | peer_log(peer_log_alert::incoming_message, "REJECT_PIECE", "piece: %d s: %x l: %x"
| ~~
| %x
1529 | , static_cast(r.piece), r.start, r.length);
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:1529:42: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
1528 | peer_log(peer_log_alert::incoming_message, "REJECT_PIECE", "piece: %d s: %x l: %x"
| ~~
| %x
1529 | , static_cast(r.piece), r.start, r.length);
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:2347:58: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
2347 | , "piece: %d s: %x l: %x", static_cast(r.piece), r.start, r.length);
| ~~ ^~~~~~~
| %x
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:2347:67: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
2347 | , "piece: %d s: %x l: %x", static_cast(r.piece), r.start, r.length);
| ~~ ^~~~~~~~
| %x
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:2407:34: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
2406 | peer_log(peer_log_alert::outgoing_message, "REJECT_PIECE", "piece: %d s: %x l: %x no metadata"
| ~~
| %x
2407 | , static_cast(r.piece), r.start, r.length);
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:2407:43: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
2406 | peer_log(peer_log_alert::outgoing_message, "REJECT_PIECE", "piece: %d s: %x l: %x no metadata"
| ~~
| %x
2407 | , static_cast(r.piece), r.start, r.length);
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:2424:34: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
2423 | peer_log(peer_log_alert::outgoing_message, "REJECT_PIECE", "piece: %d s: %x l: %x too many requests"
| ~~
| %x
2424 | , static_cast(r.piece), r.start, r.length);
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:2424:43: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
2423 | peer_log(peer_log_alert::outgoing_message, "REJECT_PIECE", "piece: %d s: %x l: %x too many requests"
| ~~
| %x
2424 | , static_cast(r.piece), r.start, r.length);
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:2794:34: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
2793 | peer_log(peer_log_alert::incoming_message, "PIECE", "piece: %d s: %x l: %x ds: %d qs: %d q: %d"
| ~~
| %x
2794 | , static_cast(p.piece), p.start, p.length, statistics().download_rate()
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:2794:43: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
2793 | peer_log(peer_log_alert::incoming_message, "PIECE", "piece: %d s: %x l: %x ds: %d qs: %d q: %d"
| ~~
| %x
2794 | , static_cast(p.piece), p.start, p.length, statistics().download_rate()
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:2927:33: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
2926 | peer_log(peer_log_alert::info, "FILE_ASYNC_WRITE", "piece: %d s: %x l: %x"
| ~~
| %x
2927 | , static_cast(p.piece), p.start, p.length);
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:2927:42: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
2926 | peer_log(peer_log_alert::info, "FILE_ASYNC_WRITE", "piece: %d s: %x l: %x"
| ~~
| %x
2927 | , static_cast(p.piece), p.start, p.length);
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:3096:34: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
3095 | peer_log(peer_log_alert::info, "FILE_ASYNC_WRITE_COMPLETE", "piece: %d s: %x l: %x e: %s"
| ~~
| %x
3096 | , static_cast(p.piece), p.start, p.length, error.ec.message().c_str());
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:3096:43: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
3095 | peer_log(peer_log_alert::info, "FILE_ASYNC_WRITE_COMPLETE", "piece: %d s: %x l: %x e: %s"
| ~~
| %x
3096 | , static_cast(p.piece), p.start, p.length, error.ec.message().c_str());
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:3228:58: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
3228 | , "piece: %d s: %x l: %x", static_cast(r.piece), r.start, r.length);
| ~~ ^~~~~~~
| %x
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:3228:67: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
3228 | , "piece: %d s: %x l: %x", static_cast(r.piece), r.start, r.length);
| ~~ ^~~~~~~~
| %x
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:3243:34: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
3242 | peer_log(peer_log_alert::outgoing_message, "REJECT_PIECE", "piece: %d s: %x l: %x cancelled"
| ~~
| %x
3243 | , static_cast(r.piece), r.start , r.length);
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:3243:44: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
3242 | peer_log(peer_log_alert::outgoing_message, "REJECT_PIECE", "piece: %d s: %x l: %x cancelled"
| ~~
| %x
3243 | , static_cast(r.piece), r.start , r.length);
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:4096:35: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
4095 | , "piece: %d s: %x l: %x ds: %dB/s dqs: %d rqs: %d blk: %s"
| ~~
| %x
4096 | , static_cast(r.piece), r.start, r.length, statistics().download_rate()
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:4096:44: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
4095 | , "piece: %d s: %x l: %x ds: %dB/s dqs: %d rqs: %d blk: %s"
| ~~
| %x
4096 | , static_cast(r.piece), r.start, r.length, statistics().download_rate()
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5235:35: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
5234 | , "piece: %d s: %x l: %x torrent deleted"
| ~~
| %x
5235 | , static_cast(r.piece), r.start , r.length);
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5235:45: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
5234 | , "piece: %d s: %x l: %x torrent deleted"
| ~~
| %x
5235 | , static_cast(r.piece), r.start , r.length);
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5282:35: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
5281 | , "piece: %d s: %x l: %x piece not passed hash check"
| ~~
| %x
5282 | , static_cast(r.piece), r.start , r.length);
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5282:45: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
5281 | , "piece: %d s: %x l: %x piece not passed hash check"
| ~~
| %x
5282 | , static_cast(r.piece), r.start , r.length);
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5290:60: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
5290 | , "piece: %d s: %x l: %x", static_cast(r.piece), r.start, r.length);
| ~~ ^~~~~~~
| %x
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5290:69: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
5290 | , "piece: %d s: %x l: %x", static_cast(r.piece), r.start, r.length);
| ~~ ^~~~~~~~
| %x
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5393:34: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
5392 | , "piece: %d s: %x l: %x b: %p c: %s e: %s rtt: %d us"
| ~~
| %x
5393 | , static_cast(r.piece), r.start, r.length
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5393:43: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
5392 | , "piece: %d s: %x l: %x b: %p c: %s e: %s rtt: %d us"
| ~~
| %x
5393 | , static_cast(r.piece), r.start, r.length
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5448:33: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
5447 | , "PIECE", "piece: %d s: %x l: %x"
| ~~
| %x
5448 | , static_cast(r.piece), r.start, r.length);
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5448:42: warning: format specifies type 'unsigned int' but the argument has type 'int' [-Wformat]
5447 | , "PIECE", "piece: %d s: %x l: %x"
| ~~
| %x
5448 | , static_cast(r.piece), r.start, r.length);
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5539:3: warning: use of function '__builtin_alloca' is discouraged; there is no way to check for failure but failure may still occur, resulting in a possibly exploitable security vulnerability [-Walloca]
5539 | TORRENT_ALLOCA(channels, bandwidth_channel*, max_channels);
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:109:46: note: expanded from macro 'TORRENT_ALLOCA'
109 | auto* TORRENT_ALLOCA_tmp = static_cast(TORRENT_ALLOCA_FUN(sizeof(t) * static_cast(TORRENT_ALLOCA_size))); \
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:94:28: note: expanded from macro 'TORRENT_ALLOCA_FUN'
94 | #define TORRENT_ALLOCA_FUN alloca
| ^
/usr/include/stdlib.h:258:20: note: expanded from macro 'alloca'
258 | #define alloca(sz) __builtin_alloca(sz)
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:37:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:43:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:153:13: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
153 | return { data() + offset, size() - offset };
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:131:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
131 | T* end() const noexcept { return m_ptr + m_len; }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:131:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
131 | T* end() const noexcept { return m_ptr + m_len; }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:131:36: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
131 | T* end() const noexcept { return m_ptr + m_len; }
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/span.hpp:153:13: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
153 | return { data() + offset, size() - offset };
| ^~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:37:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:107:45: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
107 | std::copy(initialize.begin(), initialize.begin()
| ~~~~~~~~~~~^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:142:76: warning: unsafe buffer access [-Wunsafe-buffer-usage]
142 | char& operator[](index_type const i) { TORRENT_ASSERT(i < size()); return m_begin[i]; }
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:143:93: warning: unsafe buffer access [-Wunsafe-buffer-usage]
143 | char const& operator[](difference_type const i) const { TORRENT_ASSERT(i < size()); return m_begin[i]; }
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:147:23: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
147 | char* end() { return m_begin + m_size; }
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/buffer.hpp:148:35: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
148 | char const* end() const { return m_begin + m_size; }
| ^~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:39:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:113:18: warning: unsafe buffer access [-Wunsafe-buffer-usage]
113 | m_stat[i] += s.m_stat[i];
| ^~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:118:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
118 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:124:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
124 | m_stat[download_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:125:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
125 | m_stat[upload_ip_protocol].add(ipv6 ? 60 : 40);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:133:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
133 | m_stat[download_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:134:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
134 | m_stat[download_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:142:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
142 | m_stat[upload_payload].add(bytes_payload);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:143:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
143 | m_stat[upload_protocol].add(bytes_protocol);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:158:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
158 | m_stat[download_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:159:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
159 | m_stat[upload_ip_protocol].add(overhead);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:162:43: warning: unsafe buffer access [-Wunsafe-buffer-usage]
162 | int upload_ip_overhead() const { return m_stat[upload_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:163:45: warning: unsafe buffer access [-Wunsafe-buffer-usage]
163 | int download_ip_overhead() const { return m_stat[download_ip_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:169:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
169 | m_stat[i].second_tick(tick_interval_ms);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:174:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
174 | return m_stat[upload_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:175:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
175 | + m_stat[upload_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:176:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
176 | + m_stat[upload_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:181:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
181 | return m_stat[download_payload].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:182:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
182 | + m_stat[download_protocol].low_pass_rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:183:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
183 | + m_stat[download_ip_protocol].low_pass_rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:188:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
188 | return m_stat[upload_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:189:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
189 | + m_stat[upload_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:190:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
190 | + m_stat[upload_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:195:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
195 | return m_stat[download_payload].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:196:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
196 | + m_stat[download_protocol].rate()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:197:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
197 | + m_stat[download_ip_protocol].rate();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:202:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
202 | return m_stat[upload_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:203:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
203 | + m_stat[upload_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:204:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
204 | + m_stat[upload_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:209:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
209 | return m_stat[download_payload].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:210:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
210 | + m_stat[download_protocol].total()
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:211:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
211 | + m_stat[download_ip_protocol].total();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:215:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
215 | { return m_stat[upload_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:217:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
217 | { return m_stat[download_payload].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:220:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
220 | { return m_stat[upload_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:222:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
222 | { return m_stat[download_payload].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:225:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
225 | { return m_stat[upload_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:227:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
227 | { return m_stat[download_protocol].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:230:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
230 | { return m_stat[channel].total(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:232:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
232 | { return m_stat[channel].rate(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:239:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
239 | m_stat[download_payload].offset(downloaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:240:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
240 | m_stat[upload_payload].offset(uploaded);
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:244:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
244 | { return m_stat[download_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:246:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
246 | { return m_stat[upload_payload].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:248:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
248 | { return m_stat[download_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:250:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
250 | { return m_stat[upload_protocol].counter(); }
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:269:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | m_stat[i].clear();
| ^~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/stat.hpp:275:11: warning: unsafe buffer access [-Wunsafe-buffer-usage]
275 | return m_stat[i];
| ^~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:47:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:86:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
86 | return (buf()[index / 32] & aux::host_to_network(0x80000000 >> (index & 31))) != 0;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:94:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
94 | buf()[index / 32] &= aux::host_to_network(~(0x80000000 >> (index & 31)));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:100:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
100 | buf()[index / 32] |= aux::host_to_network(0x80000000 >> (index & 31));
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:115:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
115 | if (b[i] != 0) return false;
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:205:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
205 | ++buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:218:8: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
218 | --buf;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ~~~~~~^~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:236:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
236 | return const_iterator(buf() + num_words() - (((size() & 31) == 0) ? 0 : 1), size() & 31);
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bitfield.hpp:269:21: warning: unsafe buffer access [-Wunsafe-buffer-usage]
269 | if (size() & 31) buf()[num_words() - 1] &= aux::host_to_network(0xffffffff << (32 - (size() & 31)));
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:38:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:51:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_class.hpp:102:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
102 | priority[1] = 1;
| ^~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:1188:8: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1188 | if (m_pc.m_channel_state[peer_connection::upload_channel] & peer_info::bw_network)
| ^~~~~~~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:1194:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1194 | m_pc.m_channel_state[peer_connection::upload_channel] |= peer_info::bw_network;
| ^~~~~~~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_connection.hpp:1204:5: warning: unsafe buffer access [-Wunsafe-buffer-usage]
1204 | m_pc.m_channel_state[peer_connection::upload_channel] &= ~peer_info::bw_network;
| ^~~~~~~~~~~~~~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:40:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/bencode.hpp:61:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:61:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
61 | ++start;
| ^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/io.hpp:176:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
176 | start += str.size();
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:45:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_interface.hpp:46:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/session_udp_sockets.hpp:36:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_socket_manager.hpp:39:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/socket_type.hpp:42:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_stream.hpp:330:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
330 | , end(buffer_sequence_end(buffers)); i != end; ++i)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_stream.hpp:330:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
330 | , end(buffer_sequence_end(buffers)); i != end; ++i)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_stream.hpp:330:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
330 | , end(buffer_sequence_end(buffers)); i != end; ++i)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_stream.hpp:330:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
330 | , end(buffer_sequence_end(buffers)); i != end; ++i)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_stream.hpp:401:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
401 | , end(buffer_sequence_end(buffers)); i != end; ++i)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_stream.hpp:401:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
401 | , end(buffer_sequence_end(buffers)); i != end; ++i)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_stream.hpp:481:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
481 | , end(buffer_sequence_end(buffers)); i != end; ++i)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_stream.hpp:481:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
481 | , end(buffer_sequence_end(buffers)); i != end; ++i)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_stream.hpp:481:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
481 | , end(buffer_sequence_end(buffers)); i != end; ++i)
| ^
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/utp_stream.hpp:481:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
481 | , end(buffer_sequence_end(buffers)); i != end; ++i)
| ^
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:46:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/peer_list.hpp:42:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_peer.hpp:40:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/string_ptr.hpp:46:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
46 | m_ptr[str.size()] = '\0';
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:51:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent.hpp:48:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/torrent_info.hpp:526:13: warning: unsafe buffer access [-Wunsafe-buffer-usage]
526 | return &m_piece_hashes[idx * 20];
| ^~~~~~~~~~~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:55:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:50:29: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
50 | for (; current != last; ++current) {
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/aux_/alloca.hpp:54:30: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
54 | for (; first != current; ++first) {
| ^~~~~
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:60:
In file included from /magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/alert_manager.hpp:38:
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:75:26: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
75 | char* ptr = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:77:59: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
77 | std::size_t const pad_bytes = aux::calculate_pad_bytes(ptr + sizeof(header_t), alignof(U));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:99:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
99 | ptr += sizeof(header_t) + pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:101:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
101 | + aux::calculate_pad_bytes(ptr + sizeof(U), alignof(header_t)));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:75:26: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
75 | char* ptr = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:77:59: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
77 | std::size_t const pad_bytes = aux::calculate_pad_bytes(ptr + sizeof(header_t), alignof(U));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:99:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
99 | ptr += sizeof(header_t) + pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:101:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
101 | + aux::calculate_pad_bytes(ptr + sizeof(U), alignof(header_t)));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:75:26: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
75 | char* ptr = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:77:59: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
77 | std::size_t const pad_bytes = aux::calculate_pad_bytes(ptr + sizeof(header_t), alignof(U));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:99:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
99 | ptr += sizeof(header_t) + pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:101:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
101 | + aux::calculate_pad_bytes(ptr + sizeof(U), alignof(header_t)));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:75:26: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
75 | char* ptr = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:77:59: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
77 | std::size_t const pad_bytes = aux::calculate_pad_bytes(ptr + sizeof(header_t), alignof(U));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:99:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
99 | ptr += sizeof(header_t) + pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:101:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
101 | + aux::calculate_pad_bytes(ptr + sizeof(U), alignof(header_t)));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:75:26: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
75 | char* ptr = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:77:59: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
77 | std::size_t const pad_bytes = aux::calculate_pad_bytes(ptr + sizeof(header_t), alignof(U));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:99:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
99 | ptr += sizeof(header_t) + pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:101:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
101 | + aux::calculate_pad_bytes(ptr + sizeof(U), alignof(header_t)));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:75:26: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
75 | char* ptr = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:77:59: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
77 | std::size_t const pad_bytes = aux::calculate_pad_bytes(ptr + sizeof(header_t), alignof(U));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:99:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
99 | ptr += sizeof(header_t) + pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:101:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
101 | + aux::calculate_pad_bytes(ptr + sizeof(U), alignof(header_t)));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:75:26: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
75 | char* ptr = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:77:59: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
77 | std::size_t const pad_bytes = aux::calculate_pad_bytes(ptr + sizeof(header_t), alignof(U));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:99:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
99 | ptr += sizeof(header_t) + pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:101:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
101 | + aux::calculate_pad_bytes(ptr + sizeof(U), alignof(header_t)));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:75:26: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
75 | char* ptr = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:77:59: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
77 | std::size_t const pad_bytes = aux::calculate_pad_bytes(ptr + sizeof(header_t), alignof(U));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:99:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
99 | ptr += sizeof(header_t) + pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:101:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
101 | + aux::calculate_pad_bytes(ptr + sizeof(U), alignof(header_t)));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:75:26: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
75 | char* ptr = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:77:59: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
77 | std::size_t const pad_bytes = aux::calculate_pad_bytes(ptr + sizeof(header_t), alignof(U));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:99:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
99 | ptr += sizeof(header_t) + pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:101:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
101 | + aux::calculate_pad_bytes(ptr + sizeof(U), alignof(header_t)));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:75:26: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
75 | char* ptr = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:77:59: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
77 | std::size_t const pad_bytes = aux::calculate_pad_bytes(ptr + sizeof(header_t), alignof(U));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:99:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
99 | ptr += sizeof(header_t) + pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:101:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
101 | + aux::calculate_pad_bytes(ptr + sizeof(U), alignof(header_t)));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:75:26: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
75 | char* ptr = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:77:59: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
77 | std::size_t const pad_bytes = aux::calculate_pad_bytes(ptr + sizeof(header_t), alignof(U));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:99:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
99 | ptr += sizeof(header_t) + pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:101:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
101 | + aux::calculate_pad_bytes(ptr + sizeof(U), alignof(header_t)));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:75:26: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
75 | char* ptr = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:77:59: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
77 | std::size_t const pad_bytes = aux::calculate_pad_bytes(ptr + sizeof(header_t), alignof(U));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:99:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
99 | ptr += sizeof(header_t) + pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:101:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
101 | + aux::calculate_pad_bytes(ptr + sizeof(U), alignof(header_t)));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:75:26: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
75 | char* ptr = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:77:59: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
77 | std::size_t const pad_bytes = aux::calculate_pad_bytes(ptr + sizeof(header_t), alignof(U));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:99:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
99 | ptr += sizeof(header_t) + pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:101:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
101 | + aux::calculate_pad_bytes(ptr + sizeof(U), alignof(header_t)));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:75:26: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
75 | char* ptr = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:77:59: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
77 | std::size_t const pad_bytes = aux::calculate_pad_bytes(ptr + sizeof(header_t), alignof(U));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:99:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
99 | ptr += sizeof(header_t) + pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:101:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
101 | + aux::calculate_pad_bytes(ptr + sizeof(U), alignof(header_t)));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:75:26: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
75 | char* ptr = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:77:59: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
77 | std::size_t const pad_bytes = aux::calculate_pad_bytes(ptr + sizeof(header_t), alignof(U));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:99:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
99 | ptr += sizeof(header_t) + pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:101:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
101 | + aux::calculate_pad_bytes(ptr + sizeof(U), alignof(header_t)));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:75:26: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
75 | char* ptr = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:77:59: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
77 | std::size_t const pad_bytes = aux::calculate_pad_bytes(ptr + sizeof(header_t), alignof(U));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:99:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
99 | ptr += sizeof(header_t) + pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:101:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
101 | + aux::calculate_pad_bytes(ptr + sizeof(U), alignof(header_t)));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:75:26: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
75 | char* ptr = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:77:59: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
77 | std::size_t const pad_bytes = aux::calculate_pad_bytes(ptr + sizeof(header_t), alignof(U));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:99:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
99 | ptr += sizeof(header_t) + pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:101:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
101 | + aux::calculate_pad_bytes(ptr + sizeof(U), alignof(header_t)));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:75:26: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
75 | char* ptr = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:77:59: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
77 | std::size_t const pad_bytes = aux::calculate_pad_bytes(ptr + sizeof(header_t), alignof(U));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:99:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
99 | ptr += sizeof(header_t) + pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:101:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
101 | + aux::calculate_pad_bytes(ptr + sizeof(U), alignof(header_t)));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:75:26: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
75 | char* ptr = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:77:59: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
77 | std::size_t const pad_bytes = aux::calculate_pad_bytes(ptr + sizeof(header_t), alignof(U));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:99:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
99 | ptr += sizeof(header_t) + pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:101:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
101 | + aux::calculate_pad_bytes(ptr + sizeof(U), alignof(header_t)));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:75:26: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
75 | char* ptr = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:77:59: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
77 | std::size_t const pad_bytes = aux::calculate_pad_bytes(ptr + sizeof(header_t), alignof(U));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:99:4: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
99 | ptr += sizeof(header_t) + pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:101:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
101 | + aux::calculate_pad_bytes(ptr + sizeof(U), alignof(header_t)));
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:214:38: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
214 | char const* const end = m_storage.get() + m_size;
| ~~~~~~~~~~^~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:219:5: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
219 | src += sizeof(header_t) + src_hdr->pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:220:5: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
220 | dst += sizeof(header_t) + src_hdr->pad_bytes;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:226:5: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
226 | src += len ;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/include/libtorrent/heterogeneous_queue.hpp:227:5: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage]
227 | dst += len;
| ^~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:177:3: warning: unsafe buffer access [-Wunsafe-buffer-usage]
177 | m_channel_state[upload_channel] = peer_info::bw_idle;
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:178:3: warning: unsafe buffer access [-Wunsafe-buffer-usage]
178 | m_channel_state[download_channel] = peer_info::bw_idle;
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:181:3: warning: unsafe buffer access [-Wunsafe-buffer-usage]
181 | m_quota[1] = 0;
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:299:21: warning: unsafe buffer access [-Wunsafe-buffer-usage]
299 | int class_prio = m_ses.peer_classes().at(class_at(i))->priority[channel];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:309:22: warning: unsafe buffer access [-Wunsafe-buffer-usage]
309 | int class_prio = m_ses.peer_classes().at(t->class_at(i))->priority[channel];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:2948:10: warning: unsafe buffer access [-Wunsafe-buffer-usage]
2948 | if (!(m_channel_state[download_channel] & peer_info::bw_disk))
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:2950:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
2950 | m_channel_state[download_channel] |= peer_info::bw_disk;
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:3108:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
3108 | && m_channel_state[download_channel] & peer_info::bw_disk)
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:3111:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
3111 | m_channel_state[download_channel] &= ~peer_info::bw_disk;
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:4246:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
4246 | if (!(m_channel_state[upload_channel] & peer_info::bw_network))
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:4349:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
4349 | if (m_channel_state[upload_channel] & peer_info::bw_disk)
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:4352:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
4352 | m_channel_state[upload_channel] &= ~peer_info::bw_disk;
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:4354:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
4354 | if (m_channel_state[download_channel] & peer_info::bw_disk)
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:4357:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
4357 | m_channel_state[download_channel] &= ~peer_info::bw_disk;
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:4536:18: warning: unsafe buffer access [-Wunsafe-buffer-usage]
4536 | p.send_quota = m_quota[upload_channel];
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:4537:21: warning: unsafe buffer access [-Wunsafe-buffer-usage]
4537 | p.receive_quota = m_quota[download_channel];
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:4624:19: warning: unsafe buffer access [-Wunsafe-buffer-usage]
4624 | p.write_state = m_channel_state[upload_channel];
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:4625:18: warning: unsafe buffer access [-Wunsafe-buffer-usage]
4625 | p.read_state = m_channel_state[download_channel];
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:4895:36: warning: unsafe buffer access [-Wunsafe-buffer-usage]
4895 | bool const reading_socket = bool(m_channel_state[download_channel] & peer_info::bw_network);
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:4994:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
4994 | && m_quota[download_channel] > 0
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5054:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5054 | && m_quota[download_channel] > 0
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5474:3: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5474 | m_quota[channel] += amount;
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5476:3: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5476 | m_channel_state[channel] &= ~peer_info::bw_limit;
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5524:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5524 | if (m_channel_state[channel] & peer_info::bw_limit) return 0;
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5531:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5531 | if (m_quota[channel] >= bytes) return 0;
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5534:12: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5534 | bytes -= m_quota[channel];
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5579:42: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5579 | "prio: %d num_channels: %d", bytes, m_quota[channel]
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5583:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5583 | m_channel_state[channel] |= peer_info::bw_limit;
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5587:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5587 | m_quota[channel] += ret;
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5604:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5604 | if (m_channel_state[upload_channel] & peer_info::bw_network)
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5633:8: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5633 | if ((m_quota[upload_channel] == 0 || m_send_barrier == 0)
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5640:26: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5640 | int const quota_left = m_quota[upload_channel];
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5645:10: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5645 | if (!(m_channel_state[upload_channel] & peer_info::bw_disk))
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5647:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5647 | m_channel_state[upload_channel] |= peer_info::bw_disk;
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5678:8: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5678 | if (m_channel_state[upload_channel] & peer_info::bw_disk)
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5680:4: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5680 | m_channel_state[upload_channel] &= ~peer_info::bw_disk;
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5693:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5693 | , m_quota[upload_channel]
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5703:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5703 | , m_quota[upload_channel]
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5736:3: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5736 | m_channel_state[upload_channel] |= peer_info::bw_network;
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5743:9: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5743 | if (!(m_channel_state[download_channel] & peer_info::bw_disk)) return;
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5750:3: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5750 | m_channel_state[download_channel] &= ~peer_info::bw_disk;
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5771:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5771 | if (m_channel_state[download_channel] & peer_info::bw_network) return;
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5773:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5773 | if (m_quota[download_channel] == 0
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5787:8: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5787 | , m_quota[download_channel]
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5788:10: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5788 | , ((m_channel_state[download_channel] & peer_info::bw_disk)?"no":"yes")
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5800:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5800 | if (m_quota[download_channel] == 0) return;
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5802:26: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5802 | int const quota_left = m_quota[download_channel];
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5809:3: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5809 | m_channel_state[download_channel] |= peer_info::bw_network;
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5869:3: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5869 | m_quota[download_channel] -= bytes_transferred;
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:5972:27: warning: unsafe buffer access [-Wunsafe-buffer-usage]
5972 | int const quota_left = m_quota[download_channel];
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:6052:3: warning: unsafe buffer access [-Wunsafe-buffer-usage]
6052 | m_channel_state[download_channel] &= ~peer_info::bw_network;
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:6063:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
6063 | && m_quota[upload_channel] > 0
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:6075:19: warning: unsafe buffer access [-Wunsafe-buffer-usage]
6075 | bool bw_limit = m_quota[download_channel] > 0;
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:6085:8: warning: unsafe buffer access [-Wunsafe-buffer-usage]
6085 | if (m_channel_state[download_channel] & peer_info::bw_disk) return false;
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:6264:3: warning: unsafe buffer access [-Wunsafe-buffer-usage]
6264 | m_channel_state[upload_channel] &= ~peer_info::bw_network;
| ^~~~~~~~~~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:6267:3: warning: unsafe buffer access [-Wunsafe-buffer-usage]
6267 | m_quota[upload_channel] -= int(bytes_transferred);
| ^~~~~~~
/magus/work/usr/mports/net-p2p/libtorrent-rasterbar/work/libtorrent-rasterbar-1.2.20/src/peer_connection.cpp:6605:7: warning: unsafe buffer access [-Wunsafe-buffer-usage]
6605 | if (m_channel_state[upload_channel] & peer_info::bw_network) return;
| ^~~~~~~~~~~~~~~
268 warnings generated.
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make: stopped in /usr/mports/net-p2p/libtorrent-rasterbar
Links
Depends On
- converters/libiconv (build)
- devel/cmake-core (build)
- devel/ninja (build)
- devel/pkgconf (build)
- converters/libiconv (lib)
- devel/boost-libs (lib)
- converters/libiconv (run)
- lang/python311 (test)
Depend Of
NothingCategories
CVEs
- Loading CVE information...
MidnightBSD Magus