HomeFreeBSD

Adjust function definitions in sysv_msg.c to avoid clang 15 warnings

Description

Adjust function definitions in sysv_msg.c to avoid clang 15 warnings

With clang 15, the following -Werror warnings are produced:

sys/kern/sysv_msg.c:213:8: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
msginit()
       ^
        void
sys/kern/sysv_msg.c:316:10: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
msgunload()
         ^
          void

This is because msginit() and msgunload() are declared with (void)
argument lists, but defined with empty argument lists. Make the
definitions match the declarations.

MFC after: 3 days

(cherry picked from commit 78cfed2de70d023acb452c06dbd1ffd8341f4608)

Details

Provenance
dimAuthored on Jul 26 2022, 5:46 PM
Parents
rG8f8c0b93d190: Adjust function definition in vfs_bio.c to avoid clang 15 warnings
Branches
Unknown
Tags
Unknown