Re: [PATCH 6/7] Silence obstack.c -Wc++compat warning

2015-11-08 Thread Jeff Law
On 11/07/2015 01:11 AM, Alan Modra wrote: Fixes warning: request for implicit conversion from ‘void *’ to ‘struct _obstack_chunk *’ not permitted in C++ [-Wc++-compat] I moved the assignment to h->chunk to fix an overlong line, then decided it would be better after the alloc failure check just

[PATCH 6/7] Silence obstack.c -Wc++compat warning

2015-11-07 Thread Alan Modra
Fixes warning: request for implicit conversion from ‘void *’ to ‘struct _obstack_chunk *’ not permitted in C++ [-Wc++-compat] I moved the assignment to h->chunk to fix an overlong line, then decided it would be better after the alloc failure check just to do things the same way as in _obstack_new