unittest + warning fix
This commit is contained in:
parent
bee8a99a34
commit
1da5f6c30c
@ -72,11 +72,9 @@ namespace ix
|
|||||||
int getAnyFreePort()
|
int getAnyFreePort()
|
||||||
{
|
{
|
||||||
// ASAN complains about getsockname
|
// ASAN complains about getsockname
|
||||||
#if defined(__has_feature)
|
#if defined(__has_feature) && __has_feature(address_sanitizer)
|
||||||
# if __has_feature(address_sanitizer)
|
|
||||||
static int defaultPort = 8090;
|
static int defaultPort = 8090;
|
||||||
return defaultPort++;
|
return defaultPort++;
|
||||||
# endif
|
|
||||||
#else
|
#else
|
||||||
int defaultPort = 8090;
|
int defaultPort = 8090;
|
||||||
int sockfd;
|
int sockfd;
|
||||||
|
Loading…
Reference in New Issue
Block a user