[libc++] Don't warn that coroutines aren't supported when including <experimental...
authorNikolas Klauser <nikolasklauser@berlin.de>
Thu, 3 Mar 2022 19:49:21 +0000 (20:49 +0100)
committerNikolas Klauser <nikolasklauser@berlin.de>
Sat, 5 Mar 2022 18:01:49 +0000 (19:01 +0100)
This change makes the behavior of `<experimental/coroutine>` consistent with other headers that only work conditionally.

Reviewed By: ldionne, #libc

Spies: Mordante, ChuanqiXu, libcxx-commits, arichardson

Differential Revision: https://reviews.llvm.org/D119964

libcxx/include/experimental/coroutine

index 5a3a095..837ab10 100644 (file)
@@ -57,14 +57,6 @@ template <class P> struct hash<coroutine_handle<P>>;
 #  pragma GCC system_header
 #endif
 
-#ifdef _LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES
-# if defined(_LIBCPP_WARNING)
-    _LIBCPP_WARNING("<experimental/coroutine> cannot be used with this compiler")
-# else
-#   warning <experimental/coroutine> cannot be used with this compiler
-# endif
-#endif
-
 #ifndef _LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES
 
 _LIBCPP_BEGIN_NAMESPACE_EXPERIMENTAL_COROUTINES