mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-08-17 00:47:34 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user