From ab455ab2f8625d25cddc6431dbd0afbecee98e22 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 23 Jan 2023 05:24:28 +0200 Subject: [PATCH] Disable -Wdeprecated-declarations for early clang-cl --- include/boost/core/detail/lwt_unattended.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/boost/core/detail/lwt_unattended.hpp b/include/boost/core/detail/lwt_unattended.hpp index a0bf022..b7b06e4 100644 --- a/include/boost/core/detail/lwt_unattended.hpp +++ b/include/boost/core/detail/lwt_unattended.hpp @@ -30,9 +30,18 @@ inline void lwt_unattended() # pragma warning(push) # pragma warning(disable: 4996) +# if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wdeprecated-declarations" +# endif + // disable message box on crash ::_seterrormode( /*SEM_NOGPFAULTERRORBOX*/ 0x0002 ); +# if defined(__clang__) +# pragma clang diagnostic pop +# endif + # pragma warning(pop) #endif