]> git.proxmox.com Git - mirror_qemu.git/commitdiff
configure: Fix compiler warnings in config.log (null arguments)
authorStefan Weil <sw@weilnetz.de>
Sat, 17 Dec 2011 08:27:32 +0000 (09:27 +0100)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Mon, 19 Dec 2011 11:03:42 +0000 (11:03 +0000)
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>
configure

index 773df6a0e889e4b1b1cf62995d6d2d2886123870..4e596e6326403379697e44ac5fdcc9c1dc5e0b87 100755 (executable)
--- a/configure
+++ b/configure
@@ -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