Re: Silence obstack.c -Wc++compat warning

2015-11-09 Thread Alan Modra
On Mon, Nov 09, 2015 at 07:40:06AM -0800, Paul Eggert wrote: > Generally we don't worry about C++ compatibility when maintaining C code, as > it complicates the code and there's typically not enough benefit to justify > it. Is there some reason obstack.c should be an exception? Not really. binuti

Re: Silence obstack.c -Wc++compat warning

2015-11-09 Thread Paul Eggert
Generally we don't worry about C++ compatibility when maintaining C code, as it complicates the code and there's typically not enough benefit to justify it. Is there some reason obstack.c should be an exception?

Silence obstack.c -Wc++compat warning

2015-11-08 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