git: 834113bbf281 - stable/13 - Adjust function definition in geom_subr.c to avoid clang 15 warnings

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Fri, 29 Jul 2022 18:47:48 UTC
The branch stable/13 has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=834113bbf28189ac68782e8079d4af1db9c74f67

commit 834113bbf28189ac68782e8079d4af1db9c74f67
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-07-26 14:01:04 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-07-29 18:31:13 +0000

    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
    
    (cherry picked from commit bfa9298765167bde0eacc538cc5a5bae4cdd7ed3)
---
 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 2f7ea7754f7b..ecd1bc243f8b 100644
--- a/sys/geom/geom_subr.c
+++ b/sys/geom/geom_subr.c
@@ -482,7 +482,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;