Re: C++ conversion status update

Pedro Alves
2016-04-19T22:20:40Z

On 04/19/2016 10:40 PM, John Baldwin wrote:
> On Tuesday, April 19, 2016 09:36:33 PM Pedro Alves wrote:

>> C++ allows conversion to 'void *' without a cast. So I think
>> we just need to do:
>>
>> - ss.ss_sp = xmalloc (SIGSTKSZ);
>> + ss.ss_sp = (char *) xmalloc (SIGSTKSZ);
>>
>> and it'll work on both char * and void * hosts. I tried it
>> here on GNU/Linux, where ss_sp is void *, and it works.
>>
>> Would you like to send that as a patch (with a comment)?
>>
>> We can leave adding an autoconf check if some other host uses
>> a type different than void * and char *.
>
> Ok, I will include that in my current patchset.

Great, thanks much.

--
Pedro Alves