Commit ffadec78 authored by Mario Trangoni's avatar Mario Trangoni

Fix clang error: ordered comparison between pointer and zero ("char *" and "int")

parent d14d5838
......@@ -363,7 +363,7 @@ void Poller::shmInit(void)
shminfo_ -> shmaddr = (char *)shmat(shminfo_ -> shmid, 0, 0);
if (shminfo_ -> shmaddr < 0)
if (shminfo_ -> shmaddr < (void *)0)
{
logWarning("Poller::shmInit", "Couldn't attach to shm segment.");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment