Skip to content

Fix deprecated use of 0/NULL in gloo/cuda_broadcast_one_to_all.h + 1 #420

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 18, 2025

Conversation

r-barnes
Copy link
Contributor

Summary:
nullptr is typesafe. 0 and NULL are not. In the future, only nullptr will be allowed.

This diff helps us embrace the future now in service of enabling -Wzero-as-null-pointer-constant.

Differential Revision: D71284808

Summary:
`nullptr` is typesafe. `0` and `NULL` are not. In the future, only `nullptr` will be allowed.

This diff helps us embrace the future _now_ in service of enabling `-Wzero-as-null-pointer-constant`.

Differential Revision: D71284808
@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D71284808

@facebook-github-bot facebook-github-bot merged commit 95ca2af into pytorch:main Mar 18, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants