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

Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/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
This commit is contained in:
Richard Barnes 2025-03-09 11:24:20 -07:00 committed by Facebook GitHub Bot
parent 3d96ad56a4
commit 653be59386

View File

@ -411,7 +411,7 @@ void StandardGpuResourcesImpl::initializeForDevice(int device) {
raftHandles_.emplace(std::make_pair(device, defaultStream));
#endif
cudaStream_t asyncCopyStream = 0;
cudaStream_t asyncCopyStream = nullptr;
CUDA_VERIFY(
cudaStreamCreateWithFlags(&asyncCopyStream, cudaStreamNonBlocking));