From 9e03d5b283f06f34c88de1e122d2d47a9a5fc131 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 17 Oct 2024 15:34:37 +0200 Subject: [PATCH] Explicitly tag getHostAndPort() as inline Otherwise the compiler will complain about a defined but unused static function. --- common/rfb/Hostname.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5