From: Philip Kaufmann Date: Mon, 30 Apr 2012 23:44:59 +0000 (+0200) Subject: fix compiler warning "suggest explicit braces to avoid ambiguous "else" X-Git-Tag: v0.4.0-unstable~129^2~29^2~1 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=f8e4d43be7a66f205f5b623f39e88f9bad02dedb fix compiler warning "suggest explicit braces to avoid ambiguous "else" [-Wparentheses]" in net.cpp --- diff --git a/src/net.cpp b/src/net.cpp index d218dcf..92b4a31 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1585,12 +1585,16 @@ void StartNode(void* parg) { vector vaddr; if (LookupHost(pszHostName, vaddr)) + { BOOST_FOREACH (const CNetAddr &addr, vaddr) + { if (!addr.IsLocal()) { addrLocalHost.SetIP(addr); break; } + } + } } #else // Get local host ip