From: Michael Wallner Date: Mon, 5 Oct 2020 08:17:17 +0000 (+0200) Subject: testing: attempt to fix clang-7 X-Git-Tag: 1.1.0-beta1~236^2~22^2~4 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=77fcb72bd529695c88e931403dac25c130190d0c;p=m6w6%2Flibmemcached testing: attempt to fix clang-7 --- diff --git a/test/lib/Server.hpp b/test/lib/Server.hpp index b90ac8d7..bfbab812 100644 --- a/test/lib/Server.hpp +++ b/test/lib/Server.hpp @@ -33,7 +33,12 @@ public: pipe = exchange(s.pipe, -1); status = exchange(s.status, 0); signalled = exchange(s.signalled, {}); +#if __clang__ && __clang_major__ <= 7 + socket_or_port = s.socket_or_port; + s.socket_or_port = 11211; +#else socket_or_port = exchange(s.socket_or_port, 11211); +#endif output = exchange(s.output, {}); return *this; };