diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-07-04 11:47:19 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-07-04 11:47:19 +0200 |
commit | 91f75bdf1fc2fcde9efb5de420caeacd89e2ce0e (patch) | |
tree | 2221dde6d623163f1bb0f87209c27b5171533cd0 /firmware/multest.c | |
parent | 2df7aadc7a4516d50d9d453a32332c14d81a7c0f (diff) | |
download | picorv32-91f75bdf1fc2fcde9efb5de420caeacd89e2ce0e.tar.gz picorv32-91f75bdf1fc2fcde9efb5de420caeacd89e2ce0e.zip |
Turned gcc warnings up to eleven
Patch by Larry Doolittle
Diffstat (limited to 'firmware/multest.c')
-rw-r--r-- | firmware/multest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/multest.c b/firmware/multest.c index 508ed36..c6323ec 100644 --- a/firmware/multest.c +++ b/firmware/multest.c @@ -7,7 +7,7 @@ #include "firmware.h" -uint32_t xorshift32() { +static uint32_t xorshift32(void) { static uint32_t x = 314159265; x ^= x << 13; x ^= x >> 17; @@ -15,7 +15,7 @@ uint32_t xorshift32() { return x; } -void multest() +void multest(void) { int i; for (i = 0; i < 10; i++) @@ -76,7 +76,7 @@ void multest() if (s_mul != h_mul || s_mulh != h_mulh || s_mulhsu != h_mulhsu || s_mulhu != h_mulhu) { print_str("ERROR!\n"); - asm volatile ("sbreak"); + __asm__ volatile ("sbreak"); return; } |