summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomek CEDRO <cederom@tlen.pl>2011-11-03 03:25:47 +0100
committerTomek CEDRO <cederom@tlen.pl>2011-11-03 03:25:47 +0100
commit02498e0ed4e142a966c2bda5bfb1e8153e7a85c8 (patch)
tree1da1e56dfcd8e6f92dded60587fde2146ad7ce2c
parent7374dbc98dd075953cf76cb465e88ebe9e356c3c (diff)
downloadopenocd+libswd-02498e0ed4e142a966c2bda5bfb1e8153e7a85c8.tar.gz
openocd+libswd-02498e0ed4e142a966c2bda5bfb1e8153e7a85c8.tar.bz2
openocd+libswd-02498e0ed4e142a966c2bda5bfb1e8153e7a85c8.tar.xz
openocd+libswd-02498e0ed4e142a966c2bda5bfb1e8153e7a85c8.zip
target/arm_adi_v5.c: Fixed compiler warnings (-Werror=uninitialized) producing compilation errors on ubuntu linux 11.10.
-rw-r--r--src/target/arm_adi_v5.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c
index 413511c7..b7a8d514 100644
--- a/src/target/arm_adi_v5.c
+++ b/src/target/arm_adi_v5.c
@@ -695,7 +695,7 @@ int mem_ap_read_buf_u32(struct adiv5_dap *dap, uint8_t *buffer,
// uint32_t invalue, adr = address;
// uint8_t* pBuffer = buffer;
- int i, retval;
+ int i, retval=ERROR_FAIL;
uint32_t invalue;
//count >>= 2;
// wcount = count;
@@ -1176,7 +1176,7 @@ int dap_get_debugbase(struct adiv5_dap *dap, int ap,
{
uint32_t ap_old;
int retval;
- uint32_t dbgbase, apid, idcode;
+ uint32_t dbgbase, apid; //, idcode;
/* AP address is in bits 31:24 of DP_SELECT */
if (ap >= 256)
@@ -1199,7 +1199,7 @@ int dap_get_debugbase(struct adiv5_dap *dap, int ap,
struct jtag_tap *tap = dap->jtag_info->tap;
while (tap != NULL) {
if (tap->hasidcode) {
- idcode = tap->idcode;
+ //idcode = tap->idcode;
break;
}
tap = tap->next_tap;