HomeFreeBSD

clang: Define NO_WDEPRECATED_NON_PROTOTYPE for clang 15

Description

clang: Define NO_WDEPRECATED_NON_PROTOTYPE for clang 15

Clang 15 enforces function definitions using the C89 form rather than
the K&R form. While not strictly a prototype (which is only for a
declaration), use the name that mirror's clang's warning name. Much code
in contrib still uses K&R function definitions, so invent this for
compiling there.

Sponsored by: Netflix
Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D37515

Details

Provenance
impAuthored on Nov 30 2022, 6:08 PM
Reviewer
jhb
Differential Revision
D37515: clang: Define NO_WDEPRECATED_NON_PROTOTYPE for clang 15
Parents
rGf4d3aa749084: netlink: suppress sending NLMSG_ERROR if NLMSG_DONE is already sent
Branches
Unknown
Tags
Unknown