qemu-devel
[Top][All Lists]
Advanced

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

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


From: malc
Subject: Re: [Qemu-devel] Re: [7234] Use a more natural order
Date: Fri, 24 Apr 2009 01:30:32 +0400 (MSD)

On Thu, 23 Apr 2009, Lennart Sorensen wrote:

> On Thu, Apr 23, 2009 at 09:37:05PM +0200, Jan Kiszka wrote:
> > Lennart Sorensen wrote:
> > > 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.
> 
> True.  You can tell it off by doing if ((x = 0)) it seems.

Bings back warm and fuzzy memories of: http://kerneltrap.org/node/1584

> 
> Always safer to treat warnings as errors it seems.
> 
> 

-- 
mailto:address@hidden




reply via email to

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