From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lx77f-00085o-33 for qemu-devel@nongnu.org; Thu, 23 Apr 2009 18:10:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lx77a-00081S-KZ for qemu-devel@nongnu.org; Thu, 23 Apr 2009 18:10:22 -0400 Received: from [199.232.76.173] (port=35754 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lx77a-00081P-IO for qemu-devel@nongnu.org; Thu, 23 Apr 2009 18:10:18 -0400 Received: from mail2.shareable.org ([80.68.89.115]:33685) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lx77a-0003dH-7E for qemu-devel@nongnu.org; Thu, 23 Apr 2009 18:10:18 -0400 Date: Thu, 23 Apr 2009 23:10:14 +0100 From: Jamie Lokier Subject: Re: [Qemu-devel] Re: [7234] Use a more natural order Message-ID: <20090423221014.GN13326@shareable.org> References: <20090423185308.GH3795@csclub.uwaterloo.ca> <49F0C361.5030402@web.de> <20090423194626.GL3795@csclub.uwaterloo.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090423194626.GL3795@csclub.uwaterloo.ca> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Lennart Sorensen Cc: Blue Swirl , Jan Kiszka , qemu-devel@nongnu.org Lennart Sorensen wrote: > > > if (x = 0) { > > > > > > compiles silently even when you didn't mean that. > > > > Today gcc will warn you as well. Of course this means you have to look > > at warnings. > > True. You can tell it off by doing if ((x = 0)) it seems. > > Always safer to treat warnings as errors it seems. If you want, you can force specific warnings to become errors in current GCC. -- Jamie