From 855dbb8f43b45b91d8f243da5a8d8fae8b93148d Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Fri, 17 May 2019 09:59:27 -0400 Subject: [PATCH] Move decl to avoid unused variable warning --- src/selfmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/selfmain.c b/src/selfmain.c index a9f5789e..5513fe86 100644 --- a/src/selfmain.c +++ b/src/selfmain.c @@ -138,10 +138,10 @@ int main(void) { NVMCTRL->CTRLA.bit.CACHEDIS1 = true; #endif - const uint8_t *ptr = bootloader; int i; #ifdef SAMD21 + const uint8_t *ptr = bootloader; for (i = 0; i < BOOTLOADER_K; ++i) { int crc = 0; for (int j = 0; j < 1024; ++j) {