Fix warning about unused variable in adiv5.c

This happens if the platform has debugging support but debugging
is not enabled.
This commit is contained in:
Björn Mellström 2021-06-03 12:56:41 +02:00
parent 711a87f7ba
commit 4b8c4990dc
1 changed files with 1 additions and 1 deletions

View File

@ -334,7 +334,7 @@ static bool cortexm_prepare(ADIv5_AP_t *ap)
uint32_t dhcsr_ctl = CORTEXM_DHCSR_DBGKEY | CORTEXM_DHCSR_C_DEBUGEN |
CORTEXM_DHCSR_C_HALT;
uint32_t dhcsr_valid = CORTEXM_DHCSR_S_HALT | CORTEXM_DHCSR_C_DEBUGEN;
#ifdef PLATFORM_HAS_DEBUG
#if defined(ENABLE_DEBUG) && defined(PLATFORM_HAS_DEBUG)
uint32_t start_time = platform_time_ms();
#endif
uint32_t dhcsr;