]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Adjust function definition in aim_machdep.c to avoid clang 15 warning
authorDimitry Andric <dim@FreeBSD.org>
Mon, 15 Aug 2022 18:27:56 +0000 (20:27 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Mon, 15 Aug 2022 18:48:34 +0000 (20:48 +0200)
commit06fce030e79ecce57365bc537e38ee0f25861d70
tree4b665a168362a999f19b1bb33aee69e9b84fcf18
parentb33bfe6e157429ad764e9a883a5e3a194a6d1f9f
Adjust function definition in aim_machdep.c to avoid clang 15 warning

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

    sys/powerpc/aim/aim_machdep.c:750:14: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    mpc745x_sleep()
                 ^
                  void

This is because mpc745x_sleep() 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/powerpc/aim/aim_machdep.c