From d40c6dbc9f4b17072e18b4c80bbfccaa58c19f5e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 5 Jul 2026 17:26:43 +0200 Subject: [PATCH] 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. --- src/common/sckipc.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/common/sckipc.cpp b/src/common/sckipc.cpp index e8d9ecbe12..dc1bd335c5 100644 --- a/src/common/sckipc.cpp +++ b/src/common/sckipc.cpp @@ -133,16 +133,15 @@ GetAddressFromName(const wxString& serverName, return addr; } #endif // Unix/!Unix - { - auto addr = std::make_unique(); - addr->Service(serverName); - if ( !host.empty() ) - { - addr->Hostname(host); - } - return addr; + auto addr = std::make_unique(); + addr->Service(serverName); + if ( !host.empty() ) + { + addr->Hostname(host); } + + return addr; } // --------------------------------------------------------------------------