From a5a112796c42e8890550956b110f1eb703ee839d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Sun, 12 Jun 2022 20:11:15 +0300 Subject: [PATCH] mdbx++: push/pop warnings for lcc 1.26 --- mdbx.h++ | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/mdbx.h++ b/mdbx.h++ index 8d9a28ca..75d42037 100644 --- a/mdbx.h++ +++ b/mdbx.h++ @@ -268,6 +268,16 @@ #pragma warning(disable : 4702) /* unreachable code */ #endif /* _MSC_VER (warnings) */ +#if defined(__LCC__) && __LCC__ >= 126 +#pragma diagnostic push +#if __LCC__ < 127 +#pragma diag_suppress 3058 /* workaround: call to is_constant_evaluated() \ + appearing in a constant expression `true` */ +#pragma diag_suppress 3060 /* workaround: call to is_constant_evaluated() \ + appearing in a constant expression `false` */ +#endif +#endif /* E2K LCC (warnings) */ + //------------------------------------------------------------------------------ /// \brief The libmdbx C++ API namespace /// \ingroup cxx_api @@ -6015,6 +6025,10 @@ template <> struct hash<::mdbx::slice> { /// end cxx_api @} } // namespace std +#if defined(__LCC__) && __LCC__ >= 126 +#pragma diagnostic pop +#endif + #ifdef _MSC_VER #pragma warning(pop) #endif