sim/erc32: Insert void parameter
Clang generates a warning if there is a function declaration/definition
with zero arguments. Such declarations/definitions without a prototype (an
argument list) are deprecated forms of indefinite arguments
("-Wdeprecated-non-prototype"). On the default configuration, it causes a
build failure (unless "--disable-werror" is specified).
This commit replaces () with (void) to avoid this warning.
diff --git a/sim/erc32/func.c b/sim/erc32/func.c
index 4d19420..af92c9f 100644
--- a/sim/erc32/func.c
+++ b/sim/erc32/func.c
@@ -298,7 +298,7 @@
#ifdef ERRINJ
void
-errinj()
+errinj (void)
{
int err;
@@ -322,7 +322,7 @@
}
void
-errinjstart()
+errinjstart (void)
{
if (errper) event(errinj, 0, (random()%errper));
}
@@ -855,7 +855,7 @@
#if 0 /* apparently not used */
void
-stop_event()
+stop_event(void)
{
}
#endif