From 3a5e8c93840e61b0a6d8ae83ebf18f84505aea0f Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Mon, 30 Oct 2017 13:48:09 -0400 Subject: [PATCH] Silence clang warning --- include/date/tz.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/date/tz.h b/include/date/tz.h index 92dbe37..9c3f8da 100644 --- a/include/date/tz.h +++ b/include/date/tz.h @@ -58,9 +58,18 @@ # endif #endif +#ifdef __clang__ +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wconstant-logical-operand" +#endif + static_assert(!(USE_OS_TZDB && HAS_REMOTE_API), "USE_OS_TZDB and HAS_REMOTE_API can not be used together"); +#ifdef __clang__ +# pragma clang diagnostic pop +#endif + #ifndef AUTO_DOWNLOAD # define AUTO_DOWNLOAD HAS_REMOTE_API #endif