sam3: fix pedantic compiler warnings

This commit is contained in:
Oleg Hahm 2015-11-28 14:18:07 +01:00
parent a82835a72b
commit 67c1084825
2 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@ void lpm_arch_init(void)
enum lpm_mode lpm_arch_set(enum lpm_mode target) enum lpm_mode lpm_arch_set(enum lpm_mode target)
{ {
(void) target;
// TODO // TODO
return 0; return 0;
} }

View File

@ -40,7 +40,7 @@ int random_read(char *buf, unsigned int num)
{ {
/* cppcheck-suppress variableScope */ /* cppcheck-suppress variableScope */
uint32_t tmp; uint32_t tmp;
int count = 0; unsigned count = 0;
while (count < num) { while (count < num) {
/* wait until new value is generated -> takes up to 84 cycles */ /* wait until new value is generated -> takes up to 84 cycles */