From ba54664748897ade974baddcc52d3776017df69d Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Sun, 23 Dec 2018 14:17:30 -0800 Subject: [PATCH] Fix warning: field '_done' will be initialized after field '_wait' [-Wreorder] _done(false), --- ixwebsocket/IXDNSLookup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ixwebsocket/IXDNSLookup.cpp b/ixwebsocket/IXDNSLookup.cpp index d6913ce6..4f305dc3 100644 --- a/ixwebsocket/IXDNSLookup.cpp +++ b/ixwebsocket/IXDNSLookup.cpp @@ -25,9 +25,9 @@ namespace ix DNSLookup::DNSLookup(const std::string& hostname, int port, int64_t wait) : _hostname(hostname), _port(port), + _wait(wait), _res(nullptr), _done(false), - _wait(wait), _id(_nextId++) {