bug-hurd
[Top][All Lists]
Advanced

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

Re: [PATCH 1/5] kern/slab.c: initialize optimal_embed


From: Samuel Thibault
Subject: Re: [PATCH 1/5] kern/slab.c: initialize optimal_embed
Date: Tue, 19 Nov 2013 21:10:50 +0100
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Marin Ramesa, le Tue 19 Nov 2013 21:06:05 +0100, a écrit :
> On 19.11.2013 20:42:24, Samuel Thibault wrote:
> > Marin Ramesa, le Tue 19 Nov 2013 07:34:19 +0100, a écrit :
> > > optimal_embed is initialized to a random value. Quiet the warning 
> > > by initializing to zero.
> > 
> > Analyzers will probably prefer that indeed.
> 
> So there is a good reason for this kind of initialization (int x = x)?

It was good enough to shut gcc off.  Apparently not good enough for
clang.

Samuel



reply via email to

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