]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Adjust function definition in geom_io.c to avoid clang 15 warnings
authorDimitry Andric <dim@FreeBSD.org>
Tue, 26 Jul 2022 14:00:08 +0000 (16:00 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Tue, 26 Jul 2022 17:59:56 +0000 (19:59 +0200)
commit165a32121cc775719b55dc0f8b66259b0fbf8325
tree80693d1194c20af0e91a9cf12f3ee35c930701d9
parentac3153434fcc3ddcbb47c7f397a1bc34fd0e0dcb
Adjust function definition in geom_io.c to avoid clang 15 warnings

With clang 15, the following -Werror warning is produced:

    sys/geom/geom_io.c:272:10: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    g_io_init()
             ^
              void

This is because g_io_init() 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_io.c