Adjust function definitions in geom_event.c to avoid clang 15 warnings
With clang 15, the following -Werror warnings are produced: sys/geom/geom_event.c:261:13: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] g_run_events() ^ void sys/geom/geom_event.c:405:12: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] g_do_wither() ^ void sys/geom/geom_event.c:449:13: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] g_event_init() ^ void This is because g_run_events(), g_do_wither(), and g_event_init() are declared with (void) argument lists, but defined with empty argument lists. Make the definitions match the declarations. MFC after: 3 days
This commit is contained in:
parent
a79731b945
commit
ac3153434f
@ -258,7 +258,7 @@ one_event(void)
|
||||
}
|
||||
|
||||
void
|
||||
g_run_events()
|
||||
g_run_events(void)
|
||||
{
|
||||
|
||||
for (;;) {
|
||||
@ -402,7 +402,7 @@ g_post_event(g_event_t *func, void *arg, int flag, ...)
|
||||
}
|
||||
|
||||
void
|
||||
g_do_wither()
|
||||
g_do_wither(void)
|
||||
{
|
||||
|
||||
mtx_lock(&g_eventlock);
|
||||
@ -446,7 +446,7 @@ g_waitfor_event(g_event_t *func, void *arg, int flag, ...)
|
||||
}
|
||||
|
||||
void
|
||||
g_event_init()
|
||||
g_event_init(void)
|
||||
{
|
||||
|
||||
mtx_init(&g_eventlock, "GEOM orphanage", NULL, MTX_DEF);
|
||||
|
Loading…
Reference in New Issue
Block a user