From a132f7943e2c790fa7380ba1b6821c4a6324fcd6 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Thu, 31 Oct 2019 22:41:24 +0800 Subject: [PATCH] Fix unused field warning --- src/net/tools/naive/naive_connection.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/net/tools/naive/naive_connection.cc b/src/net/tools/naive/naive_connection.cc index 125d78c4ba..f814f778e1 100644 --- a/src/net/tools/naive/naive_connection.cc +++ b/src/net/tools/naive/naive_connection.cc @@ -218,6 +218,8 @@ int NaiveConnection::DoConnectServer() { } } } +#else + static_cast(resolver_); #endif }