mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
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
This commit is contained in:
parent
b54e962aca
commit
78cfed2de7
@ -210,7 +210,7 @@ static struct syscall_helper_data msg32_syscalls[] = {
|
||||
#endif
|
||||
|
||||
static int
|
||||
msginit()
|
||||
msginit(void)
|
||||
{
|
||||
struct prison *pr;
|
||||
void **rsv;
|
||||
@ -313,7 +313,7 @@ msginit()
|
||||
}
|
||||
|
||||
static int
|
||||
msgunload()
|
||||
msgunload(void)
|
||||
{
|
||||
struct msqid_kernel *msqkptr;
|
||||
int msqid;
|
||||
|
Loading…
Reference in New Issue
Block a user