qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [7234] Use a more natural order


From: Jan Kiszka
Subject: [Qemu-devel] Re: [7234] Use a more natural order
Date: Thu, 23 Apr 2009 21:37:05 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

Lennart Sorensen wrote:
> On Thu, Apr 23, 2009 at 06:29:47PM +0000, Blue Swirl wrote:
>> Revision: 7234
>>           http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7234
>> Author:   blueswir1
>> Date:     2009-04-23 18:29:47 +0000 (Thu, 23 Apr 2009)
>> Log Message:
>> -----------
>> Use a more natural order
> 
> It may be more natural, but it is also less safe.
> 
> After all
> 
> if (0 = x) {
> 
> fails compile, while
> 
> 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.

Jan

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]