From 68f5f213bf0cbd0bd60a6849bf4379113ea06282 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 13 Jul 2018 16:20:30 +0200 Subject: appease analyzer --- compat/meta.hpp | 13 +++++++++++++ compat/sleep.cpp | 2 ++ 2 files changed, 15 insertions(+) (limited to 'compat') diff --git a/compat/meta.hpp b/compat/meta.hpp index 11c5ca0f..a116cebc 100644 --- a/compat/meta.hpp +++ b/compat/meta.hpp @@ -45,6 +45,15 @@ namespace meta::detail { { using type = to; }; + + template struct cons_; + + template class t, typename x, typename... xs> + struct cons_, x> + { + using type = t; + }; + } // ns meta::detail namespace meta { @@ -66,5 +75,9 @@ namespace meta { template using last = lift>; + + template + using cons = detail::cons_; + } // ns meta diff --git a/compat/sleep.cpp b/compat/sleep.cpp index 6a22adeb..4ec61db5 100644 --- a/compat/sleep.cpp +++ b/compat/sleep.cpp @@ -11,11 +11,13 @@ namespace portable OTR_COMPAT_EXPORT void sleep(int milliseconds) { if (milliseconds > 0) + { #ifdef _WIN32 Sleep(milliseconds); #else usleep(unsigned(milliseconds) * 1000U); // takes microseconds #endif + } } } -- cgit v1.2.3