From bfa9298765167bde0eacc538cc5a5bae4cdd7ed3 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Tue, 26 Jul 2022 16:01:04 +0200 Subject: [PATCH] Adjust function definition in geom_subr.c to avoid clang 15 warnings With clang 15, the following -Werror warning is produced: sys/geom/geom_subr.c:484:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] g_wither_washer() ^ void This is because g_wither_washer() is declared with a (void) argument list, but defined with an empty argument list. Make the definition match the declaration. MFC after: 3 days --- sys/geom/geom_subr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/geom/geom_subr.c b/sys/geom/geom_subr.c index 25fa7b4185c4..19facde0c7db 100644 --- a/sys/geom/geom_subr.c +++ b/sys/geom/geom_subr.c @@ -481,7 +481,7 @@ g_wither_geom_close(struct g_geom *gp, int error) * withered bits at present. */ void -g_wither_washer() +g_wither_washer(void) { struct g_class *mp; struct g_geom *gp, *gp2;