From: Pedro Alves Date: Thu, 29 Oct 2015 12:55:02 +0000 (+0000) Subject: gdbserver/mem-break.c: Add cast X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d2412fa5d0051f7eb7b13aaf98173b5d9a55d132;p=binutils-gdb.git gdbserver/mem-break.c: Add cast ... for C++. Fixes: gdb/gdbserver/mem-break.c:204:28: error: invalid conversion from 'int' to 'bkpt_type' [-fpermissive] gdb/gdbserver/ChangeLog: 2015-10-29 Pedro Alves * mem-break.c (Z_packet_to_bkpt_type): Add cast. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 66db27f5303..46e347daf0e 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2015-10-29 Pedro Alves + + * mem-break.c (Z_packet_to_bkpt_type): Add cast. + 2015-10-29 Pedro Alves * tracepoint.c (clear_installed_tracepoints): Add casts. diff --git a/gdb/gdbserver/mem-break.c b/gdb/gdbserver/mem-break.c index 656402ae7c3..c808a84d751 100644 --- a/gdb/gdbserver/mem-break.c +++ b/gdb/gdbserver/mem-break.c @@ -241,7 +241,7 @@ Z_packet_to_bkpt_type (char z_type) { gdb_assert ('0' <= z_type && z_type <= '4'); - return gdb_breakpoint_Z0 + (z_type - '0'); + return (enum bkpt_type) (gdb_breakpoint_Z0 + (z_type - '0')); } /* See mem-break.h. */