Skip to content
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

Use nullptr in faiss/gpu/StandardGpuResources.cpp #4232

Closed
wants to merge 1 commit into from

Conversation

r-barnes
Copy link
Contributor

@r-barnes r-barnes commented Mar 8, 2025

Summary:
nullptr is preferable to 0 or NULL. Let's use it everywhere so we can enable -Wzero-as-null-pointer-constant.

  • If you approve of this diff, please use the "Accept & Ship" button :-)

Reviewed By: dtolnay

Differential Revision: D70818157

Summary:
`nullptr` is preferable to `0` or `NULL`. Let's use it everywhere so we can enable `-Wzero-as-null-pointer-constant`.

 - If you approve of this diff, please use the "Accept & Ship" button :-)

Reviewed By: dtolnay

Differential Revision: D70818157
@facebook-github-bot
Copy link
Contributor

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

1 similar comment
@facebook-github-bot
Copy link
Contributor

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

facebook-github-bot pushed a commit to facebook/fboss that referenced this pull request Mar 9, 2025
Summary:
X-link: facebookresearch/faiss#4232

`nullptr` is preferable to `0` or `NULL`. Let's use it everywhere so we can enable `-Wzero-as-null-pointer-constant`.

 - If you approve of this diff, please use the "Accept & Ship" button :-)

Reviewed By: dtolnay

Differential Revision: D70818157

fbshipit-source-id: a46d64b6d80844f5246f7df236eb6ec54ce2886f
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 653be59.

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