From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:42816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RcbBS-00044b-PO for qemu-devel@nongnu.org; Mon, 19 Dec 2011 06:15:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RcbBM-0002W1-WD for qemu-devel@nongnu.org; Mon, 19 Dec 2011 06:15:06 -0500 Received: from e06smtp11.uk.ibm.com ([195.75.94.107]:47039) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RcbBM-0002Vx-Oc for qemu-devel@nongnu.org; Mon, 19 Dec 2011 06:15:00 -0500 Received: from /spool/local by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 19 Dec 2011 11:15:00 -0000 Received: from d06av12.portsmouth.uk.ibm.com (d06av12.portsmouth.uk.ibm.com [9.149.37.247]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id pBJBEwti2781368 for ; Mon, 19 Dec 2011 11:14:58 GMT Received: from d06av12.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av12.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id pBJBEwts028989 for ; Mon, 19 Dec 2011 04:14:58 -0700 From: Stefan Hajnoczi Date: Mon, 19 Dec 2011 11:12:31 +0000 Message-Id: <1324293158-25433-11-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1324293158-25433-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1324293158-25433-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 10/17] configure: Fix compiler warnings in config.log (null arguments) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Stefan Weil , Anthony Liguori , Stefan Hajnoczi From: Stefan Weil 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 --- configure | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 773df6a..4e596e6 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 -- 1.7.7.3