aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2024-08-27 13:15:52 -0400
committerJason Merrill <jason@redhat.com>2024-08-28 05:40:10 -0400
commit28f94bf91a536395347a2da5558f0ddf014e814f (patch)
tree3cc45c0abe017465ff1589f96a8111092f031799
parent5974da3dfb6b4c205c14353f59b4369a3437e543 (diff)
downloadgcc-28f94bf91a536395347a2da5558f0ddf014e814f.zip
gcc-28f94bf91a536395347a2da5558f0ddf014e814f.tar.gz
gcc-28f94bf91a536395347a2da5558f0ddf014e814f.tar.bz2
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.
-rw-r--r--libstdc++-v3/include/std/coroutine2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/std/coroutine b/libstdc++-v3/include/std/coroutine
index 908c117..ccd016b 100644
--- a/libstdc++-v3/include/std/coroutine
+++ b/libstdc++-v3/include/std/coroutine
@@ -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)