aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGareth McMullin2015-04-02 21:06:18 -0700
committerGareth McMullin2015-04-02 21:06:18 -0700
commit865beaba981582f2a2206928c58a3a55350f4d38 (patch)
tree9311d7c5ef1509fcbd6e989479aa2aa7dfe2c600
parent05f062612b1501e993e3d3e01363694c6fcbc797 (diff)
Suppress warning about longjmp clobbering local variable.
-rw-r--r--src/cortexm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cortexm.c b/src/cortexm.c
index ac4c549..ae1c59d 100644
--- a/src/cortexm.c
+++ b/src/cortexm.c
@@ -464,7 +464,7 @@ static int cortexm_halt_wait(target *t)
ADIv5_AP_t *ap = adiv5_target_ap(t);
struct cortexm_priv *priv = ap->priv;
- uint32_t dhcsr = 0;
+ volatile uint32_t dhcsr = 0;
volatile struct exception e;
TRY_CATCH (e, EXCEPTION_ALL) {
/* If this times out because the target is in WFI then