aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2024-10-17 15:34:37 +0200
committerPierre Ossman <ossman@cendio.se>2024-10-17 15:50:48 +0200
commit9e03d5b283f06f34c88de1e122d2d47a9a5fc131 (patch)
tree8795f38b3d43eaa185373cb458c581170c208f26 /common
parenta4c86a7f07d81450c5e0147c27ed737b7af4547c (diff)
downloadtigervnc-9e03d5b283f06f34c88de1e122d2d47a9a5fc131.tar.gz
tigervnc-9e03d5b283f06f34c88de1e122d2d47a9a5fc131.zip
Explicitly tag getHostAndPort() as inline
Otherwise the compiler will complain about a defined but unused static function.
Diffstat (limited to 'common')
-rw-r--r--common/rfb/Hostname.h4
1 files 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;