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

John Baldwin jhb@FreeBSD.org
Wed Aug 4 15:39:45 GMT 2021


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

-- 
John Baldwin


More information about the Gdb-patches mailing list