Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

Commit

Permalink
Silence warning of type -Wconversion-null on GCC 5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
pietern committed Jan 28, 2020
1 parent 0520884 commit 0b206da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorpipe/transport/shm/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Error recvFdsFromSocket(int socketFd, Fds&... fds) {
// Read control message.
struct cmsghdr* cmsg;
cmsg = CMSG_FIRSTHDR(&msg);
TP_DCHECK_NE(cmsg, NULL);
TP_DCHECK_NE(cmsg, static_cast<void*>(nullptr));
TP_DCHECK_EQ(cmsg->cmsg_level, SOL_SOCKET);
TP_DCHECK_EQ(cmsg->cmsg_type, SCM_RIGHTS);
TP_DCHECK_EQ(cmsg->cmsg_len, CMSG_LEN(sizeof(TPayload) * sizeof...(Fds)));
Expand Down

0 comments on commit 0b206da

Please sign in to comment.