From 899aa8811b040590f627b807f7ccddcc0079d745 Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nwpope@utu.fi> Date: Wed, 5 Jun 2019 18:43:27 +0300 Subject: [PATCH] Fix for bad warning fix --- components/net/cpp/test/peer_unit.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/net/cpp/test/peer_unit.cpp b/components/net/cpp/test/peer_unit.cpp index d9a67fdb2..dd846a961 100644 --- a/components/net/cpp/test/peer_unit.cpp +++ b/components/net/cpp/test/peer_unit.cpp @@ -7,6 +7,7 @@ #include <thread> #include <chrono> +#include <ftl/net/common.hpp> #include <ftl/net/peer.hpp> #include <ftl/net/protocol.hpp> #include <ftl/config.h> @@ -34,7 +35,7 @@ using std::chrono::milliseconds; class MockPeer : public Peer { public: - MockPeer() : Peer(INVALID_SOCKET) {} + MockPeer() : Peer((SOCKET)0) {} void mock_data() { data(); } }; -- GitLab