mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-30 17:31:13 +08:00
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.
This commit is contained in:
@ -298,7 +298,7 @@ disp_reg(struct pstate *sregs, char *reg)
|
|||||||
#ifdef ERRINJ
|
#ifdef ERRINJ
|
||||||
|
|
||||||
void
|
void
|
||||||
errinj()
|
errinj (void)
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
@ -322,7 +322,7 @@ errinj()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
errinjstart()
|
errinjstart (void)
|
||||||
{
|
{
|
||||||
if (errper) event(errinj, 0, (random()%errper));
|
if (errper) event(errinj, 0, (random()%errper));
|
||||||
}
|
}
|
||||||
@ -855,7 +855,7 @@ event(void (*cfunc) (), int32_t arg, uint64_t delta)
|
|||||||
|
|
||||||
#if 0 /* apparently not used */
|
#if 0 /* apparently not used */
|
||||||
void
|
void
|
||||||
stop_event()
|
stop_event(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user