From cd1bef89bbd0f61b6e7aeb635597bc4a8063cb2d Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Mon, 9 Jan 2017 09:13:19 +1300 Subject: [PATCH] adiv5_dp_init: make ctrlstat volatile to supress warning. --- src/target/adiv5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/target/adiv5.c b/src/target/adiv5.c index 3fa7673..18de968 100644 --- a/src/target/adiv5.c +++ b/src/target/adiv5.c @@ -388,7 +388,7 @@ ADIv5_AP_t *adiv5_new_ap(ADIv5_DP_t *dp, uint8_t apsel) void adiv5_dp_init(ADIv5_DP_t *dp) { - uint32_t ctrlstat = 0; + volatile uint32_t ctrlstat = 0; adiv5_dp_ref(dp);