diff options
author | Stefan Weil <sw@weilnetz.de> | 2011-12-17 09:27:32 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-12-19 11:03:42 +0000 |
commit | 7a42bbe4515168390ce1c3f65b15ebc08db625ce (patch) | |
tree | 2b81162e5a1f8df36cad1e75ce5b70c0522bfc32 /configure | |
parent | ef9a252442c84af64216fc3e9c5c2283cbb30995 (diff) | |
download | qemu-7a42bbe4515168390ce1c3f65b15ebc08db625ce.zip qemu-7a42bbe4515168390ce1c3f65b15ebc08db625ce.tar.gz qemu-7a42bbe4515168390ce1c3f65b15ebc08db625ce.tar.bz2 |
configure: Fix compiler warnings in config.log (null arguments)
warning: null argument where non-null required (argument 1)
warning: null argument where non-null required (argument 3)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1951,7 +1951,12 @@ PTHREADLIBS_LIST="-pthread -lpthread -lpthreadGC2" pthread=no cat > $TMPC << EOF #include <pthread.h> -int main(void) { pthread_create(0,0,0,0); return 0; } +static void *f(void *p) { return NULL; } +int main(void) { + pthread_t thread; + pthread_create(&thread, 0, f, 0); + return 0; +} EOF if compile_prog "" "" ; then pthread=yes |