Re: [PATCH v2] Remove uninitialized_var()

2012-10-30 Thread Ingo Molnar
* David Rientjes wrote: > On Sun, 28 Oct 2012, Ingo Molnar wrote: > > > I left it a bit mystic because in some cases this macro was > > mis-used not to suppress GCC being wrong, but to hide GCC being > > *right*: for example unused variable warnings in cases like: > > > >int uninitialize

Re: [PATCH v2] Remove uninitialized_var()

2012-10-29 Thread David Rientjes
On Sun, 28 Oct 2012, Ingo Molnar wrote: > I left it a bit mystic because in some cases this macro was > mis-used not to suppress GCC being wrong, but to hide GCC being > *right*: for example unused variable warnings in cases like: > >int uninitialized_var(var); > >#ifdef XYZ >var =

Re: [PATCH v2] Remove uninitialized_var()

2012-10-28 Thread Ryan Mallon
On 28/10/12 21:20, Ingo Molnar wrote: > > * Andrew Morton wrote: > >> On Sat, 27 Oct 2012 15:12:03 +0200 Ingo Molnar wrote: >> >>> There's 3 types of conversions done: >>> >>>uninitialized_var(x)=> x = 0 /* for scalar types */ >>>uninitialized_var(x)=> x = NULL