I have just committed the attached patch. Jie
* target_bfin_new.c (test_context_save_clobber_r0): Fix set but not used warning. (test_context_save_clobber_r0): Likewise. (jc_process): Likewise. * gdbproxy.c (handle_detach_command): Likewise. * remote.c (remote_read_single_register): Likewise.
Index: target_bfin_new.c =================================================================== --- target_bfin_new.c (revision 5622) +++ target_bfin_new.c (working copy) @@ -3101,9 +3101,7 @@ itest_write_clobber_r0 (int core, bfin_t static void test_context_save_clobber_r0 (int core, bfin_test_data *test_data) { - urj_part_t *part; - - part = cpu->chain->parts->parts[cpu->first_core + core]; + cpu->chain->parts->parts[cpu->first_core + core]; test_data->data1 = mmr_read_clobber_r0 (core, test_data->data1_off, 4); test_data->data0 = mmr_read_clobber_r0 (core, test_data->data0_off, 4); @@ -3112,9 +3110,7 @@ test_context_save_clobber_r0 (int core, static void test_context_restore_clobber_r0 (int core, bfin_test_data *test_data) { - urj_part_t *part; - - part = cpu->chain->parts->parts[cpu->first_core + core]; + cpu->chain->parts->parts[cpu->first_core + core]; mmr_write_clobber_r0 (core, test_data->data1_off, test_data->data1, 4); mmr_write_clobber_r0 (core, test_data->data0_off, test_data->data0, 4); @@ -3630,7 +3626,6 @@ static int jc_process (int core) { urj_part_t *part; urj_tap_register_t *rof, *rif; - uint64_t value; int ret; core_scan_select (cpu->core_a, EMUDAT_SCAN); @@ -3678,7 +3673,6 @@ static int jc_process (int core) for (i = 0; i < reg_size; ++i) rif->data[i] = (emudat >> (reg_size - 1 - i)) & 0x1; rif->data[33] = 1; - value = emudat_value (rif); jc_emudat_show (rif, fmt); /* Shift out the datum */ Index: gdbproxy.c =================================================================== --- gdbproxy.c (revision 5622) +++ gdbproxy.c (working copy) @@ -858,9 +858,7 @@ static void handle_detach_command(char * int out_buf_len, rp_target *t) { - int ret; - - ret = t->disconnect(); + t->disconnect(); /* Note: The current GDB does not expect a reply */ rp_putpkt(out_buf); Index: remote.c =================================================================== --- remote.c (revision 5622) +++ remote.c (working copy) @@ -833,14 +833,13 @@ static int remote_read_single_register(u int count; char *in; unsigned int val; - int len; assert(data_buf != NULL); assert(avail_buf != NULL); assert(buf_size > 0); assert(read_size != NULL); - len = sprintf(remote_out_buf, "p%x", reg_no); + sprintf(remote_out_buf, "p%x", reg_no); if (!(ret = remote_putpkt(remote_out_buf))) return RP_VAL_TARGETRET_ERR;
_______________________________________________ Toolchain-devel mailing list Toolchain-devel@blackfin.uclinux.org https://blackfin.uclinux.org/mailman/listinfo/toolchain-devel