Skip to content

Commit

Permalink
Explicitly tag getHostAndPort() as inline
Browse files Browse the repository at this point in the history
Otherwise the compiler will complain about a defined but unused static
function.
  • Loading branch information
CendioOssman committed Oct 17, 2024
1 parent a4c86a7 commit 9e03d5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/rfb/Hostname.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9e03d5b

Please sign in to comment.