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

(cherry picked from commit 0ecb61619688acf57a6f5d7b00bf7fda62cf7c53)

Details

Provenance
impAuthored on Nov 30 2022, 6:08 PM
dimCommitted on Apr 9 2023, 2:55 PM
Reviewer
jhb
Differential Revision
D37515: clang: Define NO_WDEPRECATED_NON_PROTOTYPE for clang 15
Parents
rG801fd0db28cb: llvm/lld: damage control threading
Branches
Unknown
Tags
Unknown