From: Pierre Ossman Date: Thu, 17 Oct 2024 13:34:37 +0000 (+0200) Subject: Explicitly tag getHostAndPort() as inline X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9e03d5b283f06f34c88de1e122d2d47a9a5fc131;p=tigervnc.git Explicitly tag getHostAndPort() as inline Otherwise the compiler will complain about a defined but unused static function. --- diff --git a/common/rfb/Hostname.h b/common/rfb/Hostname.h index a09cca3f..f6a11a60 100644 --- a/common/rfb/Hostname.h +++ b/common/rfb/Hostname.h @@ -39,8 +39,8 @@ namespace rfb { return true; } - static void getHostAndPort(const char* hi, std::string* host, - int* port, int basePort=5900) + static inline void getHostAndPort(const char* hi, std::string* host, + int* port, int basePort=5900) { const char* hostStart; const char* hostEnd;