Re: [PATCH 1/1] kconfig: fix lists definition for C++

2013-04-29 Thread Rob Landley
On 04/29/2013 05:30:54 PM, Yann E. MORIN wrote: Rob, All, On Mon, Apr 29, 2013 at 04:54:14PM -0500, Rob Landley wrote: > On 04/29/2013 02:28:07 PM, Randy Dunlap wrote: > >On 04/29/13 10:59, Yann E. MORIN wrote: > >> From: "Yann E. MORIN" > >> > >> The C++ compiler is more strict in that it refu

Re: [PATCH 1/1] kconfig: fix lists definition for C++

2013-04-29 Thread Yann E. MORIN
Rob, All, On Mon, Apr 29, 2013 at 04:54:14PM -0500, Rob Landley wrote: > On 04/29/2013 02:28:07 PM, Randy Dunlap wrote: > >On 04/29/13 10:59, Yann E. MORIN wrote: > >> From: "Yann E. MORIN" > >> > >> The C++ compiler is more strict in that it refuses to assign > >> a void* to a struct list_head*.

Re: [PATCH 1/1] kconfig: fix lists definition for C++

2013-04-29 Thread Rob Landley
On 04/29/2013 02:28:07 PM, Randy Dunlap wrote: On 04/29/13 10:59, Yann E. MORIN wrote: > From: "Yann E. MORIN" > > The C++ compiler is more strict in that it refuses to assign > a void* to a struct list_head*. Given that the code _isn't_ C++ (because C is not a subset of C++ but a separate l

Re: [PATCH 1/1] kconfig: fix lists definition for C++

2013-04-29 Thread Randy Dunlap
On 04/29/13 10:59, Yann E. MORIN wrote: > From: "Yann E. MORIN" > > The C++ compiler is more strict in that it refuses to assign > a void* to a struct list_head*. > > Fix that by explicitly casting the poisonning constants. > > (Tested with all 5 frontends, now.) > > Reported-by: Randy Dunlap

[PATCH 1/1] kconfig: fix lists definition for C++

2013-04-29 Thread Yann E. MORIN
From: "Yann E. MORIN" The C++ compiler is more strict in that it refuses to assign a void* to a struct list_head*. Fix that by explicitly casting the poisonning constants. (Tested with all 5 frontends, now.) Reported-by: Randy Dunlap Signed-off-by: "Yann E. MORIN" Cc: Randy Dunlap Cc: Benja