mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
build: silence compiler warning on BSD
Building on 64-bit FreeBSD 8.2 complained about a cast between a pointer and a smaller integer. Going through an intermediate cast shuts up the compiler. * src/util/threads-pthread.c (virThreadSelfID): Silence a warning.
This commit is contained in:
parent
9d86cbcf5f
commit
4d970fd293
@ -216,7 +216,7 @@ int virThreadSelfID(void)
|
|||||||
tid = syscall(SYS_gettid);
|
tid = syscall(SYS_gettid);
|
||||||
return (int)tid;
|
return (int)tid;
|
||||||
#else
|
#else
|
||||||
return (int)(void *)pthread_self();
|
return (int)(intptr_t)(void *)pthread_self();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user