From 07a5305a95096ea76633c1b6a7943026608d2bb0 Mon Sep 17 00:00:00 2001 From: arvidn Date: Mon, 11 Apr 2022 16:46:16 +0200 Subject: [PATCH] fix build with encryption support disabled --- include/libtorrent/aux_/torrent_list.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/libtorrent/aux_/torrent_list.hpp b/include/libtorrent/aux_/torrent_list.hpp index f2449a4d339..99dd0f30a62 100644 --- a/include/libtorrent/aux_/torrent_list.hpp +++ b/include/libtorrent/aux_/torrent_list.hpp @@ -234,7 +234,9 @@ struct torrent_list #endif TORRENT_ASSERT(all_torrents == all_indexed_torrents); +#if !defined TORRENT_DISABLE_ENCRYPTION TORRENT_ASSERT(all_torrents == all_obf_indexed_torrents); +#endif } #endif