From 4dd93252772733644ad59bb1924f46ee1bbbbf34 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 2 Mar 2019 12:10:19 +0100 Subject: [PATCH] minor fix for warning of infinite loops --- include/libtorrent/debug.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libtorrent/debug.hpp b/include/libtorrent/debug.hpp index e03644cc7..31ae49b44 100644 --- a/include/libtorrent/debug.hpp +++ b/include/libtorrent/debug.hpp @@ -222,7 +222,7 @@ namespace libtorrent { }; #define TORRENT_INCREMENT(x) increment_guard inc_(x) #else -#define TORRENT_INCREMENT(x) do {} while (false) +#define TORRENT_INCREMENT(x) do {} TORRENT_WHILE_0 #endif }