From: Stefan Weil Date: Sat, 17 Dec 2011 08:27:32 +0000 (+0100) Subject: configure: Fix compiler warnings in config.log (null arguments) X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=7a42bbe4515168390ce1c3f65b15ebc08db625ce;p=qemu-xen-4.6-testing.git 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 Signed-off-by: Stefan Hajnoczi --- diff --git a/configure b/configure index 773df6a0e..4e596e632 100755 --- a/configure +++ b/configure @@ -1951,7 +1951,12 @@ PTHREADLIBS_LIST="-pthread -lpthread -lpthreadGC2" pthread=no cat > $TMPC << EOF #include -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