[gcc r15-3247] libstdc++: avoid -Wzero-as-null-pointer-constant
Jason Merrill
jason@gcc.gnu.org
Wed Aug 28 09:40:53 GMT 2024
https://gcc.gnu.org/g:28f94bf91a536395347a2da5558f0ddf014e814f
commit r15-3247-g28f94bf91a536395347a2da5558f0ddf014e814f
Author: Jason Merrill <jason@redhat.com>
Date: Tue Aug 27 13:15:52 2024 -0400
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.
Diff:
---
libstdc++-v3/include/std/coroutine | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libstdc++-v3/include/std/coroutine b/libstdc++-v3/include/std/coroutine
index 908c1178a149..ccd016b255eb 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)
More information about the Libstdc++-cvs
mailing list