diff --git a/source/windows/net_wins.c b/source/windows/net_wins.c index a301bb7..82266f7 100644 --- a/source/windows/net_wins.c +++ b/source/windows/net_wins.c @@ -107,7 +107,7 @@ static void WINS_GetLocalAddress(void) myAddr = *(in_addr_t *)local->h_addr_list[0]; addr = ntohl(myAddr); - sprintf(my_tcpip_address, "%" PRIi64 ".%" PRIi64 ".%" PRIi64 ".%" PRIi64, (addr >> 24) & 0xff, (addr >> 16) & 0xff, (addr >> 8) & 0xff, addr & 0xff); + sprintf(my_tcpip_address, "%li.%li.%li.%li", (addr >> 24) & 0xff, (addr >> 16) & 0xff, (addr >> 8) & 0xff, addr & 0xff); } @@ -325,6 +325,7 @@ static int32_t PartialIPAddress(const char *in, struct qsockaddr *hostaddr) int32_t WINS_Connect(sys_socket_t socketid, struct qsockaddr *addr) { + (void)socketid, (void)addr; return 0; } diff --git a/source/windows/net_wipx.c b/source/windows/net_wipx.c index 6abeb88..2156e20 100644 --- a/source/windows/net_wipx.c +++ b/source/windows/net_wipx.c @@ -214,6 +214,7 @@ int32_t WIPX_CloseSocket(sys_socket_t handle) int32_t WIPX_Connect(sys_socket_t handle, struct qsockaddr *addr) { + (void)handle, (void)addr; return 0; } diff --git a/source/windows/sys_sdl_win.c b/source/windows/sys_sdl_win.c index 6c5f2b8..6f97afa 100644 --- a/source/windows/sys_sdl_win.c +++ b/source/windows/sys_sdl_win.c @@ -150,6 +150,8 @@ static void Sys_GetBasedir(char *argv0, char *dst, size_t dstsize) char *tmp; size_t rc; + (void)argv0; + rc = GetCurrentDirectory(dstsize, dst); if(rc == 0 || rc > dstsize) Sys_Error("Couldn't determine current directory");