From 67c1084825cb09a0709813266d8e764af98f59d4 Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Sat, 28 Nov 2015 14:18:07 +0100 Subject: [PATCH] sam3: fix pedantic compiler warnings --- cpu/sam3/lpm_arch.c | 1 + cpu/sam3/periph/random.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cpu/sam3/lpm_arch.c b/cpu/sam3/lpm_arch.c index 3884e10ab4..cf5e6212c0 100644 --- a/cpu/sam3/lpm_arch.c +++ b/cpu/sam3/lpm_arch.c @@ -27,6 +27,7 @@ void lpm_arch_init(void) enum lpm_mode lpm_arch_set(enum lpm_mode target) { + (void) target; // TODO return 0; } diff --git a/cpu/sam3/periph/random.c b/cpu/sam3/periph/random.c index 73b56a24f5..faf08f678d 100644 --- a/cpu/sam3/periph/random.c +++ b/cpu/sam3/periph/random.c @@ -40,7 +40,7 @@ int random_read(char *buf, unsigned int num) { /* cppcheck-suppress variableScope */ uint32_t tmp; - int count = 0; + unsigned count = 0; while (count < num) { /* wait until new value is generated -> takes up to 84 cycles */