[sw] Deny K&R Declarations in C
C functions that take no arguments have to specify `void` between the
parentheses in the function declaration. If this is omitted, then the
compiler assumes it is a K&R style declaration, which are not type safe.
Signed-off-by: Sam Elliott <selliott@lowrisc.org>
diff --git a/sw/device/lib/runtime/ibex.h b/sw/device/lib/runtime/ibex.h
index ce8a087..5c389ba 100644
--- a/sw/device/lib/runtime/ibex.h
+++ b/sw/device/lib/runtime/ibex.h
@@ -25,7 +25,7 @@
* Adapted from: The RISC-V Instruction Set Manual, Volume I: Unprivileged ISA
* V20191213, pp. 61.
*/
-inline uint64_t ibex_mcycle_read() {
+inline uint64_t ibex_mcycle_read(void) {
uint32_t cycle_low = 0;
uint32_t cycle_high = 0;
uint32_t cycle_high_2 = 0;