diff options
author | Pierre Ossman <ossman@cendio.se> | 2024-10-17 15:34:37 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2024-10-17 15:50:48 +0200 |
commit | 9e03d5b283f06f34c88de1e122d2d47a9a5fc131 (patch) | |
tree | 8795f38b3d43eaa185373cb458c581170c208f26 /common | |
parent | a4c86a7f07d81450c5e0147c27ed737b7af4547c (diff) | |
download | tigervnc-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.h | 4 |
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; |