Skip to content

Compilation fails with GCC 15: number of arguments doesn’t match prototype #130

@chusopr

Description

@chusopr

Compilation fails with upcoming version 15 of GCC with several errors about the number of arguments in the fuctions in src/utils/lib/md4_comp.c:

src/utils/lib/md4_comp.c: In function ‘MD4Init’:
src/utils/lib/md4_comp.c:76:6: warning: old-style function definition [-Wold-style-definition]
   76 | void MD4Init (context)
      |      ^~~~~~~
src/utils/lib/md4_comp.c:78:1: error: number of arguments doesn’t match prototype
   78 | {
      | ^
In file included from src/utils/lib/md4_comp.c:19:
src/utils/lib/md4.h:64:6: error: prototype declaration
   64 | void MD4Init PROTO_LIST ((MD4_CTX *));
      |      ^~~~~~~

That's the first one, but there are many more.

Full log attached.

mldonkey.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions