]> source.dussan.org Git - tigervnc.git/commitdiff
Explicitly tag getHostAndPort() as inline
authorPierre Ossman <ossman@cendio.se>
Thu, 17 Oct 2024 13:34:37 +0000 (15:34 +0200)
committerPierre Ossman <ossman@cendio.se>
Thu, 17 Oct 2024 13:50:48 +0000 (15:50 +0200)
Otherwise the compiler will complain about a defined but unused static
function.

common/rfb/Hostname.h

index a09cca3f5f765142584f5a18e7c631e0fe428fca..f6a11a60536f29e339ec4eca7ec4f2faf5af7bf5 100644 (file)
@@ -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;