[PATCH] gdb: fix warnings in bsd-kvm.c

Simon Marchi simon.marchi@polymtl.ca
Wed Aug 4 19:26:04 GMT 2021



On 2021-08-04 11:39 a.m., John Baldwin wrote:
> On 8/3/21 3:13 PM, Simon Marchi via Gdb-patches wrote:
>> Building on OpenBSD, I get warnings like:
>>
>>        CXX    bsd-kvm.o
>>      /home/simark/src/binutils-gdb/gdb/bsd-kvm.c:241:18: error: ISO C++11 does not allow conversion from string literal to 'char *' [-Werror,-Wwritable-strings]
>>        nl[0].n_name = "_dumppcb";
>>                       ^
>>
>> Silence those by adding casts.
> 
> LGTM
> 

Pushed, thanks.

Simon


More information about the Gdb-patches mailing list