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

Details

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