diff --git a/src/flash/cfi.c b/src/flash/cfi.c index 90d5678c9..580110958 100644 --- a/src/flash/cfi.c +++ b/src/flash/cfi.c @@ -1600,7 +1600,6 @@ int cfi_spansion_write_words(struct flash_bank_s *bank, u8 *word, u32 wordcount, cfi_flash_bank_t *cfi_info = bank->driver_priv; target_t *target = bank->target; u8 command[8]; - int sector; cfi_spansion_pri_ext_t *pri_ext = cfi_info->pri_ext; /* Calculate buffer size and boundary mask */ diff --git a/src/target/cortex_swjdp.c b/src/target/cortex_swjdp.c index e368cfd86..4363dfdd5 100644 --- a/src/target/cortex_swjdp.c +++ b/src/target/cortex_swjdp.c @@ -38,6 +38,7 @@ #include "cortex_swjdp.h" #include "jtag.h" #include "log.h" +#include "time_support.h" #include /*