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: Jamie Lokier
Subject: Re: [Qemu-devel] Re: [7234] Use a more natural order
Date: Thu, 23 Apr 2009 23:10:14 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

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




reply via email to

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