adiv5_dp_init: make ctrlstat volatile to supress warning.

This commit is contained in:
Gareth McMullin 2017-01-09 09:13:19 +13:00
parent d6e29774fe
commit cd1bef89bb
1 changed files with 1 additions and 1 deletions

View File

@ -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);