@@ -982,26 +982,35 @@ using SmallMutex =
982
982
983
983
// Enforce literal requirements for static variants.
984
984
#if SWIFT_MUTEX_SUPPORTS_CONSTEXPR
985
+ #pragma clang diagnostic push
986
+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
985
987
static_assert (std::is_literal_type<StaticMutex>::value,
986
988
" StaticMutex must be literal type" );
987
989
static_assert (std::is_literal_type<StaticUnsafeMutex>::value,
988
990
" StaticUnsafeMutex must be literal type" );
991
+ #pragma clang diagnostic pop
989
992
#else
990
993
// Your platform doesn't currently support statically allocated Mutex
991
994
// you will possibly see global-constructors warnings
992
995
#endif
993
996
994
997
#if SWIFT_CONDITION_SUPPORTS_CONSTEXPR
998
+ #pragma clang diagnostic push
999
+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
995
1000
static_assert (std::is_literal_type<StaticConditionVariable>::value,
996
1001
" StaticConditionVariable must be literal type" );
1002
+ #pragma clang diagnostic pop
997
1003
#else
998
1004
// Your platform doesn't currently support statically allocated ConditionVar
999
1005
// you will possibly see global-constructors warnings
1000
1006
#endif
1001
1007
1002
1008
#if SWIFT_READWRITELOCK_SUPPORTS_CONSTEXPR
1009
+ #pragma clang diagnostic push
1010
+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
1003
1011
static_assert (std::is_literal_type<StaticReadWriteLock>::value,
1004
1012
" StaticReadWriteLock must be literal type" );
1013
+ #pragma clang diagnostic pop
1005
1014
#else
1006
1015
// Your platform doesn't currently support statically allocated ReadWriteLocks
1007
1016
// you will possibly see global-constructors warnings
0 commit comments