[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 04/11] configure: Fix compiler warnings in config.lo
From: |
Stefan Weil |
Subject: |
[Qemu-devel] [PATCH 04/11] configure: Fix compiler warnings in config.log (null arguments) |
Date: |
Sat, 17 Dec 2011 09:27:32 +0100 |
warning: null argument where non-null required (argument 1)
warning: null argument where non-null required (argument 3)
Signed-off-by: Stefan Weil <address@hidden>
---
configure | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/configure b/configure
index 8dee237..5d860a7 100755
--- 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
--
1.7.2.5
[Qemu-devel] [PATCH 02/11] configure: Fix compiler warnings in config.log (old-style function definition), Stefan Weil, 2011/12/17
[Qemu-devel] [PATCH 04/11] configure: Fix compiler warnings in config.log (null arguments),
Stefan Weil <=
[Qemu-devel] [PATCH 05/11] configure: Fix compiler warning in config.log (unused variable), Stefan Weil, 2011/12/17
[Qemu-devel] [PATCH 06/11] configure: Fix compiler warning in config.log (macro redefined), Stefan Weil, 2011/12/17
[Qemu-devel] [PATCH 08/11] configure: Fix compiler warning in config.log (undefined NULL), Stefan Weil, 2011/12/17
[Qemu-devel] [PATCH 09/11] configure: Fix compiler warning in config.log (value was never used), Stefan Weil, 2011/12/17
[Qemu-devel] [PATCH 10/11] configure: Fix compiler warnings in config.log (statement without effect), Stefan Weil, 2011/12/17
[Qemu-devel] [PATCH 07/11] configure: Fix compiler warnings in config.log (uninitialized variable), Stefan Weil, 2011/12/17
[Qemu-devel] [PATCH 11/11] configure: Improve Xen autodetection for hosts without Xen, Stefan Weil, 2011/12/17
Re: [Qemu-devel] [PATCH 00/11] configure: Fix compiler warnings in config.log, Peter Maydell, 2011/12/17