From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LVY8B-0005pt-3f for qemu-devel@nongnu.org; Fri, 06 Feb 2009 16:20:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LVY89-0005pL-NQ for qemu-devel@nongnu.org; Fri, 06 Feb 2009 16:20:58 -0500 Received: from [199.232.76.173] (port=53296 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVY89-0005pI-Fp for qemu-devel@nongnu.org; Fri, 06 Feb 2009 16:20:57 -0500 Received: from moutng.kundenserver.de ([212.227.17.8]:64160) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LVY89-0000LR-1U for qemu-devel@nongnu.org; Fri, 06 Feb 2009 16:20:57 -0500 Received: from localhost ([127.0.0.1] ident=stefan) by flocke.weilnetz.de with esmtp (Exim 4.69) (envelope-from ) id 1LVY87-0002V8-2H for qemu-devel@nongnu.org; Fri, 06 Feb 2009 22:20:55 +0100 Message-ID: <498CA9B6.5080302@mail.berlios.de> Date: Fri, 06 Feb 2009 22:20:54 +0100 From: Stefan Weil MIME-Version: 1.0 Subject: [Qemu-devel] [PATCH] Fix definition of NULL Content-Type: multipart/mixed; boundary="------------090707030703000302000508" Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers This is a multi-part message in MIME format. --------------090707030703000302000508 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Hello, the definition of NULL in dyngen-exec.h is correct for C++ but wrong for C. It results in a compiler warning. My patch fixes it. Because Qemu does not support C++, I just used the C definition and did not try to support C++, too. Regards Stefan Weil --------------090707030703000302000508 Content-Type: text/x-diff; name="null.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="null.patch" Fix declaration of NULL. Signed-off-by: Stefan Weil Index: trunk/dyngen-exec.h =================================================================== --- trunk.orig/dyngen-exec.h 2009-02-06 22:15:33.000000000 +0100 +++ trunk/dyngen-exec.h 2009-02-06 22:16:03.000000000 +0100 @@ -91,7 +91,7 @@ extern int fputs(const char *, FILE *); extern int printf(const char *, ...); #undef NULL -#define NULL 0 +#define NULL ((void *)0) #if defined(__i386__) #define AREG0 "ebp" --------------090707030703000302000508--