]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
build: avoid compiler warning on cygwin
authorEric Blake <eblake@redhat.com>
Wed, 6 Apr 2011 23:02:53 +0000 (17:02 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 6 Apr 2011 23:07:23 +0000 (17:07 -0600)
commitf6447e8a5401fc7278a2098c2eb5b42ba09c6912
tree20375693ba23c4d4d42feaf540ce6f7692e3f050
parentbf7f62519ac0835744c033fabc93b2b5896c0810
build: avoid compiler warning on cygwin

In file included from util/threads.c:31:
util/threads-pthread.c: In function 'virThreadSelfID':
util/threads-pthread.c:214: warning: cast from function call of type 'pthread_t' to non-matching type 'int' [-Wbad-function-cast]

* src/util/threads-pthread.c (virThreadSelfID) [!SYS_gettid]:
Add intermediate cast to silence gcc.
src/util/threads-pthread.c