1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-17 20:08:12 +00:00

suppress warning when debug is disabled

This commit is contained in:
Pavol Rusnak 2015-05-04 19:40:15 +02:00
parent 21d0bb437a
commit ffedf8a4d0

2
rand.c
View File

@ -45,6 +45,7 @@ uint32_t random32(void)
uint32_t r;
size_t len = sizeof(r);
size_t len_read = fread(&r, 1, len, f);
(void)len_read;
assert(len_read == len);
return r;
}
@ -59,6 +60,7 @@ uint32_t random_uniform(uint32_t n)
void random_buffer(uint8_t *buf, size_t len)
{
size_t len_read = fread(buf, 1, len, f);
(void)len_read;
assert(len_read == len);
}