From e844bd466b20f8bea7a5e9521baa27feddc20342 Mon Sep 17 00:00:00 2001 From: Lev Stipakov Date: Mon, 10 Feb 2020 16:17:15 +0200 Subject: [PATCH] mingw: change arguments order in lambda Having capture without initializer after nested struct is broken in GCC 7.x and is fixed starting from GCC 8.1 (see https://stackoverflow.com/questions/60110629/). Signed-off-by: Lev Stipakov --- openvpn/tun/win/client/tunsetup.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvpn/tun/win/client/tunsetup.hpp b/openvpn/tun/win/client/tunsetup.hpp index 3bf0b1ae..9cfc8ea8 100644 --- a/openvpn/tun/win/client/tunsetup.hpp +++ b/openvpn/tun/win/client/tunsetup.hpp @@ -857,7 +857,7 @@ namespace openvpn { // We must do DHCP release/renew in a background thread // so the foreground can forward the DHCP negotiation packets // over the tunnel. - l2_thread.reset(new std::thread([this, logwrap=Log::Context::Wrapper(), tap]() { + l2_thread.reset(new std::thread([this, tap, logwrap=Log::Context::Wrapper()]() { Log::Context logctx(logwrap); ::Sleep(250); const Util::InterfaceInfoList ii;