Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LPgm9-0006Qc-AE for qemu-devel@nongnu.org; Wed, 21 Jan 2009 12:22:01 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LPgm8-0006Po-T4 for qemu-devel@nongnu.org; Wed, 21 Jan 2009 12:22:00 -0500 Received: from [199.232.76.173] (port=58721 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPgm8-0006PY-Gm for qemu-devel@nongnu.org; Wed, 21 Jan 2009 12:22:00 -0500 Received: from smtp02.citrix.com ([66.165.176.63]:11477) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LPgm8-0006FA-5r for qemu-devel@nongnu.org; Wed, 21 Jan 2009 12:22:00 -0500 Received: from mariner.uk.xensource.com ([10.80.2.22]) by smtp01.ad.xensource.com (8.13.1/8.13.1) with ESMTP id n0LHLtNg019195 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Wed, 21 Jan 2009 09:21:58 -0800 Received: from iwj by mariner.uk.xensource.com with local (Exim 4.63) (envelope-from ) id 1LPgm1-00023H-8O for qemu-devel@nongnu.org; Wed, 21 Jan 2009 17:21:55 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18807.22960.363376.840752@mariner.uk.xensource.com> Date: Wed, 21 Jan 2009 17:21:52 +0000 Subject: Re: [Qemu-devel] [PATCH] Fix a compile error when none of the definesis hit In-Reply-To: <2199746.324571232555139352.JavaMail.servlet@kundenserver> References: <2199746.324571232555139352.JavaMail.servlet@kundenserver> From: Ian Jackson Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org laurent@lvivier.info writes ("Re: [Qemu-devel] [PATCH] Fix a compile error when none of the definesis hit"): > [Anthony:] > >I'd rather see something like do {} while (0); with a comment. This is all rather mystifying to me. What's wrong with just adding braces ? - if (sdl || !vnc_display) + if (sdl || !vnc_display) { #if defined(CONFIG_SDL) sdl_display_init(ds, full_screen, no_frame); #elif defined(CONFIG_COCOA) cocoa_display_init(ds, full_screen); #endif + } Ian.