From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:51631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rbpdn-0004n7-Li for qemu-devel@nongnu.org; Sat, 17 Dec 2011 03:29:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rbpdm-0006L7-8U for qemu-devel@nongnu.org; Sat, 17 Dec 2011 03:29:11 -0500 From: Stefan Weil Date: Sat, 17 Dec 2011 09:27:32 +0100 Message-Id: <1324110459-3932-5-git-send-email-sw@weilnetz.de> In-Reply-To: <1324110459-3932-1-git-send-email-sw@weilnetz.de> References: <1324110459-3932-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH 04/11] 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: qemu-trivial@nongnu.org, 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 --- 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 -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