From 64d7a5f55adb7f3419e8cd92d13ba3b0096e744a Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Tue, 24 Mar 2015 08:47:51 +0100 Subject: [PATCH] kinetis: unsuppress variable scope warnings in rnga.c --- cpu/kinetis_common/random_rnga.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cpu/kinetis_common/random_rnga.c b/cpu/kinetis_common/random_rnga.c index af6e2ec93..2917a3216 100644 --- a/cpu/kinetis_common/random_rnga.c +++ b/cpu/kinetis_common/random_rnga.c @@ -35,8 +35,6 @@ void random_init(void) int random_read(char *buf, unsigned int num) { - /* cppcheck-suppress variableScope */ - uint32_t tmp; int count = 0; /* self-seeding */ @@ -48,7 +46,7 @@ int random_read(char *buf, unsigned int num) /* wait for random data to be ready to read */ while (!(KINETIS_RNGA->SR & RNG_SR_OREG_LVL_MASK)); - tmp = KINETIS_RNGA->OR; + uint32_t tmp = KINETIS_RNGA->OR; /* copy data into result vector */ for (int i = 0; i < 4 && count < num; i++) {