libstdc++: avoid -Wzero-as-null-pointer-constant

libstdc++-v3/ChangeLog:

	* include/std/coroutine (coroutine_handle): Use nullptr instead of
	0 as initializer for _M_fr_ptr.
This commit is contained in:
Jason Merrill 2024-08-27 13:15:52 -04:00
parent 5974da3dfb
commit 28f94bf91a

View File

@ -99,7 +99,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
public:
// [coroutine.handle.con], construct/reset
constexpr coroutine_handle() noexcept : _M_fr_ptr(0) {}
constexpr coroutine_handle() noexcept : _M_fr_ptr(nullptr) {}
constexpr coroutine_handle(std::nullptr_t __h) noexcept
: _M_fr_ptr(__h)