Discussion:
[OpenOCD-devel] [PATCH]: 43e2101 arm_adi_v5: Fix build errors due to warning
gerrit
2017-05-24 22:14:11 UTC
Permalink
This is an automated email from Gerrit.

Kamal Dasu (***@gmail.com) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/4150

-- gerrit

commit 43e210112fd5ae1b9bac1821c11c44bbb108cb79
Author: Kamal Dasu <***@gmail.com>
Date: Mon Apr 24 13:27:17 2017 -0400

arm_adi_v5: Fix build errors due to warning

Intialize variable to fix build errors due to warnings.

Change-Id: Ibc3f9c6bd48dcf410e419c7146830575073d6ecd
Signed-off-by: Kamal Dasu <***@gmail.com>

diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c
index eafc2dd..0eb043c 100644
--- a/src/target/arm_adi_v5.c
+++ b/src/target/arm_adi_v5.c
@@ -1051,8 +1051,8 @@ static int dap_rom_display(struct command_context *cmd_ctx,
struct adiv5_ap *ap, uint32_t dbgbase, int depth)
{
int retval;
- uint64_t pid;
- uint32_t cid;
+ uint64_t pid = 0;
+ uint32_t cid = 0;
char tabs[7] = "";

if (depth > 16) {

--

Loading...