Work around gcc 4.8 bug after changes of last commit

Change GetAddressFromName() to always return "addr" at the end.

This is done just to work around a bug in gcc 4.8 which complains about
the control reaching the end of non-void function otherwise.
This commit is contained in:
Vadim Zeitlin
2026-08-06 21:59:35 +02:00
parent ab5aa8045d
commit d40c6dbc9f
+7 -8
View File
@@ -133,16 +133,15 @@ GetAddressFromName(const wxString& serverName,
return addr;
}
#endif // Unix/!Unix
{
auto addr = std::make_unique<wxIPV4address>();
addr->Service(serverName);
if ( !host.empty() )
{
addr->Hostname(host);
}
return addr;
auto addr = std::make_unique<wxIPV4address>();
addr->Service(serverName);
if ( !host.empty() )
{
addr->Hostname(host);
}
return addr;
}
// --------------------------------------------------------------------------